[Nagiosplug-checkins] nagiosplug/plugins check_radius.c,1.23,1.24
Holger Weiss
hweiss at users.sourceforge.net
Tue Jan 23 17:42:03 CET 2007
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv18243/plugins
Modified Files:
check_radius.c
Log Message:
Initialize `data' to zero, fixes potential segfault (Nobuhiro Ban - 1642658)
Index: check_radius.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_radius.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- check_radius.c 19 Oct 2006 23:53:28 -0000 1.23
+++ check_radius.c 23 Jan 2007 16:42:01 -0000 1.24
@@ -139,6 +139,7 @@
service = PW_AUTHENTICATE_ONLY;
+ memset (&data, 0, sizeof(data));
if (!(rc_avpair_add (&data.send_pairs, PW_SERVICE_TYPE, &service, 0) &&
rc_avpair_add (&data.send_pairs, PW_USER_NAME, username, 0) &&
rc_avpair_add (&data.send_pairs, PW_USER_PASSWORD, password, 0) &&
More information about the Commits
mailing list