]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
alloc reply, not request packet.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 5 Jan 2016 18:39:15 +0000 (13:39 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 5 Jan 2016 18:39:15 +0000 (13:39 -0500)
This initializes all of the necessary fields

src/main/process.c

index 736a00db1854bb002b092672efd306588b5ffa79..ff46605177981296adaea731f9166b23bbefa9e3 100644 (file)
@@ -1798,7 +1798,7 @@ static REQUEST *request_setup(TALLOC_CTX *ctx, rad_listen_t *listener, RADIUS_PA
                ERROR("No memory");
                return NULL;
        }
-       request->reply = rad_alloc(request, false);
+       request->reply = rad_alloc_reply(request, packet);
        if (!request->reply) {
                ERROR("No memory");
                talloc_free(request);