diff options
author | Walter de Jong <walter.dejong@surfsara.nl> | 2014-08-06 16:55:57 +0200 |
---|---|---|
committer | Walter de Jong <walter.dejong@surfsara.nl> | 2014-08-06 16:55:57 +0200 |
commit | ee0e16001c4073f770a134e7e18e89d3d2b9d7b4 (patch) | |
tree | 20f724073f1e266d3f02d5056e5df297d90d89f8 /src/pam_radius_auth.c | |
parent | b061e094c70f139e78f8a7803d11f7f76ade6c75 (diff) | |
download | libpam-radius-auth-ee0e16001c4073f770a134e7e18e89d3d2b9d7b4.tar.gz libpam-radius-auth-ee0e16001c4073f770a134e7e18e89d3d2b9d7b4.zip |
clear the response
Just making sure, it seems cleaner to make sure that the function
can not exit with the response in some random/undefined state
Diffstat (limited to 'src/pam_radius_auth.c')
-rw-r--r-- | src/pam_radius_auth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pam_radius_auth.c b/src/pam_radius_auth.c index 5ef44e0..c4b9fd1 100644 --- a/src/pam_radius_auth.c +++ b/src/pam_radius_auth.c @@ -779,6 +779,8 @@ static int talk_radius(radius_conf_t *conf, AUTH_HDR *request, AUTH_HDR *respons /* loop over all available servers */ while (server != NULL) { + /* clear the response */ + memset(response, 0, sizeof(AUTH_HDR)); /* only look up IP information as necessary */ if ((retval = host2server(server)) != PAM_SUCCESS) { |