projects
/
mech_eap.orig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dce337f
)
Don't leak packet if request object creation fails
author
Luke Howard
<lukeh@padl.com>
Mon, 28 Feb 2011 23:16:24 +0000
(10:16 +1100)
committer
Luke Howard
<lukeh@padl.com>
Mon, 28 Feb 2011 23:16:24 +0000
(10:16 +1100)
accept_sec_context.c
patch
|
blob
|
history
diff --git
a/accept_sec_context.c
b/accept_sec_context.c
index
4d92c80
..
5c086e7
100644
(file)
--- a/
accept_sec_context.c
+++ b/
accept_sec_context.c
@@
-381,6
+381,7
@@
eapGssSmAcceptAuthenticate(OM_uint32 *minor,
}
rs_request_add_reqpkt(request, req);
+ req = NULL;
if (rs_request_send(request, &resp) != 0) {
major = gssEapRadiusMapError(minor, rs_err_conn_pop(rconn));
@@
-441,6
+442,8
@@
eapGssSmAcceptAuthenticate(OM_uint32 *minor,
cleanup:
if (request != NULL)
rs_request_destroy(request);
+ if (req != NULL)
+ rs_packet_destroy(req);
return major;
}