summaryrefslogtreecommitdiff
path: root/package/ipsec-tools/patches/patch-src_racoon_isakmp_xauth_c
blob: 63825a34da91db7a527099d1f3d6e44d62aa3c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ipsec-tools-0.8.0.orig/src/racoon/isakmp_xauth.c	2011-03-14 16:50:36.000000000 +0100
+++ ipsec-tools-0.8.0/src/racoon/isakmp_xauth.c	2011-03-31 13:23:58.351808486 +0200
@@ -655,7 +655,7 @@ PAM_conv(msg_count, msg, rsp, dontcare)
 
 	if ((reply = racoon_malloc(sizeof(*reply) * msg_count)) == NULL) 
 		return PAM_CONV_ERR;
-	bzero(reply, sizeof(*reply) * msg_count);
+	memset(reply, 0, sizeof(*reply) * msg_count);
 
 	for (i = 0; i < msg_count; i++) {
 		switch (msg[i]->msg_style) {