mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-21 14:19:30 -04:00
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
This commit is contained in:
parent
63028dedab
commit
5aa4d5bbb9
2 changed files with 2 additions and 0 deletions
|
|
@ -207,3 +207,4 @@ Matthias Eble
|
|||
Sebastian Schubert
|
||||
Jason Hoos
|
||||
Chris Grim
|
||||
Nobuhiro Ban
|
||||
|
|
|
|||
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue