Code

Initialize `data' to zero, fixes potential segfault (Nobuhiro Ban - 1642658)
authorHolger Weiss <hweiss@users.sourceforge.net>
Tue, 23 Jan 2007 16:42:01 +0000 (16:42 +0000)
committerHolger Weiss <hweiss@users.sourceforge.net>
Tue, 23 Jan 2007 16:42:01 +0000 (16:42 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1576 f882894a-f735-0410-b71e-b25c423dba1c

THANKS.in
plugins/check_radius.c

index 0d0f4a550120c0a5d631acda79dfa444dee5b030..584fee08a9521f5d24b7a90f8aaffca28ddcacb1 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
@@ -207,3 +207,4 @@ Matthias Eble
 Sebastian Schubert
 Jason Hoos
 Chris Grim
+Nobuhiro Ban
index 6d42e1d31e068c1cd7eaf2ab0f5607faa9c32874..b1bb928f3e31484b9966538d2f35bc6cadcfd2a0 100644 (file)
@@ -139,6 +139,7 @@ main (int argc, char **argv)
 
        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) &&