]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Properly cleanup varargs in LDAP fetcher's set_option()
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:13:17 +0000 (15:13 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:13:17 +0000 (15:13 +0200)
src/libstrongswan/plugins/ldap/ldap_fetcher.c

index fc6114b0afc8681b6af8d907b9146fc1a5880b49..75f9648532e23bdb5b710488860d99237e37e761 100644 (file)
@@ -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,