[asterisk-commits] russell: branch 1.8 r359110 - /branches/1.8/res/res_crypto.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 13 19:37:22 CDT 2012
Author: russell
Date: Tue Mar 13 19:37:17 2012
New Revision: 359110
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359110
Log:
Fix incorrect usage of sizeof() in res_crypto.
In this case, just remove the memset(). There was a redundant memset that is
done correctly just 2 lines later.
Modified:
branches/1.8/res/res_crypto.c
Modified: branches/1.8/res/res_crypto.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_crypto.c?view=diff&rev=359110&r1=359109&r2=359110
==============================================================================
--- branches/1.8/res/res_crypto.c (original)
+++ branches/1.8/res/res_crypto.c Tue Mar 13 19:37:17 2012
@@ -116,7 +116,6 @@
key->infd = -2;
return -1;
}
- memset(buf, 0, sizeof(buf));
tmp = ast_hide_password(key->infd);
memset(buf, 0, size);
res = read(key->infd, buf, size);
More information about the asterisk-commits
mailing list