talloc_steal the packet after reading it
authorAlan T. DeKok <aland@freeradius.org>
Tue, 24 Jun 2014 13:20:25 +0000 (09:20 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 24 Jun 2014 13:20:43 +0000 (09:20 -0400)
src/main/listen.c

index c05b892..339e1e6 100644 (file)
@@ -247,6 +247,7 @@ RADCLIENT *client_listener_find(rad_listen_t *listener,
                talloc_free(request);
                goto unknown;
        }
+       (void) talloc_steal(request, request->packet);
        request->reply = rad_alloc_reply(request, request->packet);
        if (!request->reply) {
                talloc_free(request);