summaryrefslogtreecommitdiff
path: root/res/res_crypto.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-11-15 00:33:07 +0000
committerMark Spencer <markster@digium.com>2004-11-15 00:33:07 +0000
commit483146e0349d389a8cca87c46ea56ba372157397 (patch)
tree6d22bade845ce477501b274fd3d8c4dd2ca862b9 /res/res_crypto.c
parent3539a390fed6e6ebeea64c3de1109b8b81363a1f (diff)
Make res crypto less chatty (bug #2857)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_crypto.c')
-rwxr-xr-xres/res_crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_crypto.c b/res/res_crypto.c
index a102913bd..3fb1c0e12 100755
--- a/res/res_crypto.c
+++ b/res/res_crypto.c
@@ -174,6 +174,7 @@ static struct ast_key *try_load_key (char *dir, char *fname, int ifd, int ofd, i
while(!feof(f)) {
/* Calculate a "whatever" quality md5sum of the key */
char buf[256];
+ memset(buf, 0, 256);
fgets(buf, sizeof(buf), f);
if (!feof(f)) {
MD5Update(&md5, buf, strlen(buf));
@@ -441,7 +442,7 @@ int ast_check_signature(struct ast_key *key, char *msg, char *sig)
static void crypto_load(int ifd, int ofd)
{
struct ast_key *key, *nkey, *last;
- DIR *dir;
+ DIR *dir = NULL;
struct dirent *ent;
int note = 0;
/* Mark all keys for deletion */