]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use instance context for talloc
authorAlan T. DeKok <aland@freeradius.org>
Sat, 16 Mar 2013 18:02:41 +0000 (14:02 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 16 Mar 2013 18:02:41 +0000 (14:02 -0400)
src/modules/rlm_ldap/rlm_ldap.c

index d76632ef48c074397f4880b91c2377aa20d6cf85..fe57c4ff47f62707e13bac7fa36258880424646c 100644 (file)
@@ -712,7 +712,7 @@ static void *ldap_conn_create(void *ctx)
        }
 #endif /* HAVE_LDAP_START_TLS */
 
-       conn = talloc(NULL, LDAP_CONN);
+       conn = talloc_zero(ctx, LDAP_CONN);
        conn->inst = inst;
        conn->handle = handle;
        conn->rebound = FALSE;