com php-src: use right sizeof for memset: sapi/litespeed/lsapilib.c

From: Date: Sun, 01 Feb 2015 05:30:58 +0000
Subject: com php-src: use right sizeof for memset: sapi/litespeed/lsapilib.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84504@lists.php.net to get a copy of this message
Commit: 2cdbd3537fd9cbbc0e16771a7b63015e2a0ab5f3 Author: Stanislav Malyshev <stas@php.net> Sat, 31 Jan 2015 21:30:58 -0800 Parents: 0f9c708229d7d4f4eff96c30cff7a2339f738511 Branches: PHP-5.4 PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2cdbd3537fd9cbbc0e16771a7b63015e2a0ab5f3 Log: use right sizeof for memset Changed paths: M sapi/litespeed/lsapilib.c Diff: diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib..c index aac823f..3d1513a 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 */

« previous php.cvs (#84504) next »