summaryrefslogtreecommitdiff
path: root/res/res_crypto.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2012-03-14 00:39:23 +0000
committerRussell Bryant <russell@russellbryant.com>2012-03-14 00:39:23 +0000
commit5ad03ac4a1622a526a32be7ca9759d182a719dd5 (patch)
tree37a80967b7636644652dcb896a26c30e25ba54c3 /res/res_crypto.c
parentb58f44b0e9bd23b20153876194fe0ab27629357e (diff)
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 ........ Merged revisions 359114 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@359115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_crypto.c')
-rw-r--r--res/res_crypto.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/res/res_crypto.c b/res/res_crypto.c
index 4ae0851d6..7c38e3d28 100644
--- a/res/res_crypto.c
+++ b/res/res_crypto.c
@@ -116,7 +116,6 @@ static int pw_cb(char *buf, int size, int rwflag, void *userdata)
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);