X-Git-Url: https://git.hcoop.net/hcoop/debian/libapache-mod-waklog.git/blobdiff_plain/5427406a5fc5abc41a0da1e43e69261603f9d88d..fcf33557c36c8c2fe3068e8178a1f7438c2a09b9:/mod_waklog.c diff --git a/mod_waklog.c b/mod_waklog.c index 704b2b4..07f1339 100644 --- a/mod_waklog.c +++ b/mod_waklog.c @@ -464,11 +464,11 @@ set_auth ( server_rec *s, request_rec *r, int self, char *principal, char *keyta log_error(APLOG_MARK, APLOG_ERR, 0, s, "mod_waklog: krb5_get_init_creds_password %s", error_message(kerror) ); /* nuke the password so it doesn't end up in core files */ - memset(k5secret, 0, sizeof(k5secret)); + memset(k5secret, 0, strlen(k5secret)); goto cleanup; } - memset(k5secret, 0, sizeof(k5secret)); + memset(k5secret, 0, strlen(k5secret)); } /* initialize the credentials cache and store the stuff we just got */