diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 15:13:17 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 15:13:17 +0200 |
commit | 9fa335cb1b8fd92a60b5a1ae5f25a03b9d3ec030 (patch) | |
tree | b8e1fcb8935576da5bea7a3d24f252b6f435589e /src/libstrongswan/plugins/ldap/ldap_fetcher.c | |
parent | b5835ee5304719342d6560ebf5d2a1ea407dd3f0 (diff) | |
download | strongswan-9fa335cb1b8fd92a60b5a1ae5f25a03b9d3ec030.tar.bz2 strongswan-9fa335cb1b8fd92a60b5a1ae5f25a03b9d3ec030.tar.xz |
Properly cleanup varargs in LDAP fetcher's set_option()
Diffstat (limited to 'src/libstrongswan/plugins/ldap/ldap_fetcher.c')
-rw-r--r-- | src/libstrongswan/plugins/ldap/ldap_fetcher.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstrongswan/plugins/ldap/ldap_fetcher.c b/src/libstrongswan/plugins/ldap/ldap_fetcher.c index fc6114b0a..75f964853 100644 --- a/src/libstrongswan/plugins/ldap/ldap_fetcher.c +++ b/src/libstrongswan/plugins/ldap/ldap_fetcher.c @@ -176,13 +176,14 @@ METHOD(fetcher_t, set_option, bool, switch (option) { case FETCH_TIMEOUT: - { this->timeout = va_arg(args, u_int); - return TRUE; - } + break; default: + va_end(args); return FALSE; } + va_end(args); + return TRUE; } METHOD(fetcher_t, destroy, void, |