[asterisk-commits] russell: branch 10 r359114 - in /branches/10: ./ res/res_crypto.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 13 19:38:31 CDT 2012
Author: russell
Date: Tue Mar 13 19:38:26 2012
New Revision: 359114
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359114
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.
........
Merged revisions 359110 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/res/res_crypto.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/res/res_crypto.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/res/res_crypto.c?view=diff&rev=359114&r1=359113&r2=359114
==============================================================================
--- branches/10/res/res_crypto.c (original)
+++ branches/10/res/res_crypto.c Tue Mar 13 19:38:26 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