diff options
author | Stanislav Malyshev <stas@php.net> | 2015-01-31 21:30:58 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2015-01-31 21:30:58 -0800 |
commit | 2cdbd3537fd9cbbc0e16771a7b63015e2a0ab5f3 (patch) | |
tree | 49cf3b4a29fb4650f83641833e0f75a1ea9c89b2 | |
parent | 0f9c708229d7d4f4eff96c30cff7a2339f738511 (diff) | |
download | php-git-2cdbd3537fd9cbbc0e16771a7b63015e2a0ab5f3.tar.gz |
use right sizeof for memset
-rw-r--r-- | sapi/litespeed/lsapilib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c index aac823fc1c..3d1513ac50 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -3376,7 +3376,7 @@ void lsapi_MD5Final(unsigned char digest[16], struct lsapi_MD5Context *ctx) lsapi_MD5Transform(ctx->buf, (uint32 *) ctx->in); byteReverse((unsigned char *) ctx->buf, 4); memmove(digest, ctx->buf, 16); - memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } /* The four core functions - F1 is optimized somewhat */ |