diff options
-rw-r--r-- | THANKS.in | 1 | ||||
-rw-r--r-- | plugins/check_radius.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -207,3 +207,4 @@ Matthias Eble | |||
207 | Sebastian Schubert | 207 | Sebastian Schubert |
208 | Jason Hoos | 208 | Jason Hoos |
209 | Chris Grim | 209 | Chris Grim |
210 | 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) | |||
139 | 139 | ||
140 | service = PW_AUTHENTICATE_ONLY; | 140 | service = PW_AUTHENTICATE_ONLY; |
141 | 141 | ||
142 | memset (&data, 0, sizeof(data)); | ||
142 | if (!(rc_avpair_add (&data.send_pairs, PW_SERVICE_TYPE, &service, 0) && | 143 | if (!(rc_avpair_add (&data.send_pairs, PW_SERVICE_TYPE, &service, 0) && |
143 | rc_avpair_add (&data.send_pairs, PW_USER_NAME, username, 0) && | 144 | rc_avpair_add (&data.send_pairs, PW_USER_NAME, username, 0) && |
144 | rc_avpair_add (&data.send_pairs, PW_USER_PASSWORD, password, 0) && | 145 | rc_avpair_add (&data.send_pairs, PW_USER_PASSWORD, password, 0) && |