projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ab2b1
)
Ensure packet is parented correctly
author
Alan T. DeKok
<aland@freeradius.org>
Tue, 24 Jun 2014 12:54:48 +0000
(08:54 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Tue, 24 Jun 2014 12:54:48 +0000
(08:54 -0400)
src/main/tls_listen.c
patch
|
blob
|
history
diff --git
a/src/main/tls_listen.c
b/src/main/tls_listen.c
index
6ed0330
..
fb150fe
100644
(file)
--- a/
src/main/tls_listen.c
+++ b/
src/main/tls_listen.c
@@
-140,8
+140,7
@@
static int tls_socket_recv(rad_listen_t *listener)
sock->packet->dst_port = sock->my_port;
if (sock->request) {
- (void) talloc_steal(sock->request, sock->packet);
- sock->request->packet = sock->packet;
+ sock->request->packet = talloc_steal(sock->request, sock->packet);
}
}
@@
-157,7
+156,7
@@
static int tls_socket_recv(rad_listen_t *listener)
rad_assert(request->packet == NULL);
rad_assert(sock->packet != NULL);
- request->packet =
sock->packet
;
+ request->packet =
talloc_steal(request, sock->packet)
;
request->component = "<core>";
request->component = "<tls-connect>";