[Asterisk-cvs] asterisk/res res_crypto.c,1.17,1.18

markster at lists.digium.com markster at lists.digium.com
Sun Nov 14 19:32:21 CST 2004


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv4788/res

Modified Files:
	res_crypto.c 
Log Message:
Make res crypto less chatty (bug #2857)


Index: res_crypto.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_crypto.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- res_crypto.c	16 Oct 2004 15:36:16 -0000	1.17
+++ res_crypto.c	15 Nov 2004 00:33:07 -0000	1.18
@@ -174,6 +174,7 @@
 	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 @@
 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 */




More information about the svn-commits mailing list