From 5aa4d5bbb9383299afa38617f0310bce57dddbc5 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 23 Jan 2007 16:42:01 +0000 Subject: Initialize `data' to zero, fixes potential segfault (Nobuhiro Ban - 1642658) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1576 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/THANKS.in b/THANKS.in index 0d0f4a5..584fee0 100644 --- a/THANKS.in +++ b/THANKS.in @@ -207,3 +207,4 @@ Matthias Eble Sebastian Schubert Jason Hoos Chris Grim +Nobuhiro Ban diff --git a/plugins/check_radius.c b/plugins/check_radius.c index 6d42e1d..b1bb928 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c @@ -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) && -- cgit v0.10-9-g596f