summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ctld/login.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ctld/login.c b/usr.sbin/ctld/login.c
index 4ee7c97..042cf2a 100644
--- a/usr.sbin/ctld/login.c
+++ b/usr.sbin/ctld/login.c
@@ -419,8 +419,9 @@ login_send_chap_c(struct pdu *request, const unsigned char id,
keys_add(response_keys, "CHAP_C", chap_c);
free(chap_c);
keys_save(response_keys, response);
- keys_delete(response_keys);
pdu_send(response);
+ pdu_delete(response);
+ keys_delete(response_keys);
}
static struct pdu *
@@ -558,6 +559,7 @@ login_send_chap_success(struct pdu *request,
keys_delete(request_keys);
pdu_send(response);
+ pdu_delete(response);
}
static void
OpenPOWER on IntegriCloud