diff options
author | Theodore Tso <tytso@mit.edu> | 1994-06-25 03:19:10 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1994-06-25 03:19:10 +0000 |
commit | 817907e0332074574abf2ef7ff27ad9bd6682571 (patch) | |
tree | 7dc8dbf7b51b52d7106959cbb7f39dc630a59ef6 /src/kadmin/client/kadmin_cpw.c | |
parent | 27b2c92d428e60241434633ad0ed6958a46d8ced (diff) | |
download | krb5-817907e0332074574abf2ef7ff27ad9bd6682571.tar.gz krb5-817907e0332074574abf2ef7ff27ad9bd6682571.tar.xz krb5-817907e0332074574abf2ef7ff27ad9bd6682571.zip |
Checked in rest of Jim Miller's kadmin bugs krb5-bugs [0395]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3915 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/client/kadmin_cpw.c')
-rw-r--r-- | src/kadmin/client/kadmin_cpw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kadmin/client/kadmin_cpw.c b/src/kadmin/client/kadmin_cpw.c index fc67d2189..f12480edc 100644 --- a/src/kadmin/client/kadmin_cpw.c +++ b/src/kadmin/client/kadmin_cpw.c @@ -119,6 +119,7 @@ char *principal; /* write private message to server */ if (krb5_write_message(local_socket, &msg_data)){ + free(msg_data.data); fprintf(stderr, "Write Error During Second Message Transmission!\n"); return(1); } @@ -154,6 +155,8 @@ char *principal; free(rd_priv_resp.message); } else fprintf(stderr, "Generic error from server.\n\n"); + memset(msg_data.data, 0, msg_data.length); + free(msg_data.data); return(0); } @@ -167,6 +170,8 @@ char *principal; pwsize = msg_data.length; if ((password = (char *) calloc (1, pwsize)) == (char *) 0) { fprintf(stderr, "No Memory for allocation of password!\n"); + memset(msg_data.data, 0, msg_data.length); + free(msg_data.data); return(1); } |