projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged from silc_1_0_branch (second merge).
[silc.git]
/
lib
/
silcclient
/
command.c
diff --git
a/lib/silcclient/command.c
b/lib/silcclient/command.c
index 3131900efdc680fb6379fb6dafc5765c79639bef..40e1d2566f0eb7c3dbbc510ee7d56e026a5e1e00 100644
(file)
--- a/
lib/silcclient/command.c
+++ b/
lib/silcclient/command.c
@@
-1175,6
+1175,8
@@
SILC_CLIENT_CMD_FUNC(join)
silc_buffer_free(idp);
if (auth)
silc_buffer_free(auth);
silc_buffer_free(idp);
if (auth)
silc_buffer_free(auth);
+ if (passphrase)
+ memset(passphrase, 0, strlen(passphrase));
silc_free(passphrase);
/* Notify application */
silc_free(passphrase);
/* Notify application */
@@
-1935,6
+1937,7
@@
static void silc_client_command_oper_send(unsigned char *data,
0, NULL, NULL, buffer->data, buffer->len, TRUE);
silc_buffer_free(buffer);
0, NULL, NULL, buffer->data, buffer->len, TRUE);
silc_buffer_free(buffer);
+ silc_buffer_clear(auth);
silc_buffer_free(auth);
/* Notify application */
silc_buffer_free(auth);
/* Notify application */
@@
-2006,6
+2009,7
@@
static void silc_client_command_silcoper_send(unsigned char *data,
0, NULL, NULL, buffer->data, buffer->len, TRUE);
silc_buffer_free(buffer);
0, NULL, NULL, buffer->data, buffer->len, TRUE);
silc_buffer_free(buffer);
+ silc_buffer_clear(auth);
silc_buffer_free(auth);
/* Notify application */
silc_buffer_free(auth);
/* Notify application */