diff options
author | Grigorii Demidov <grigorii.demidov@nic.cz> | 2018-12-14 13:31:47 +0100 |
---|---|---|
committer | Grigorii Demidov <grigorii.demidov@nic.cz> | 2018-12-14 13:49:04 +0100 |
commit | 71c709c61755310aaf60bd038ce171ebd0ef0040 (patch) | |
tree | 2bced2ad478203541633b6fbe675cab2f9c08cc3 /daemon/session.c | |
parent | Merge branch 'stub-timneouting' into 'master' (diff) | |
download | knot-resolver-71c709c61755310aaf60bd038ce171ebd0ef0040.tar.xz knot-resolver-71c709c61755310aaf60bd038ce171ebd0ef0040.zip |
daemon: proper processing of unsuccessful TLS rehandshake
Diffstat (limited to 'daemon/session.c')
-rw-r--r-- | daemon/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/session.c b/daemon/session.c index db238233..c870d8cd 100644 --- a/daemon/session.c +++ b/daemon/session.c @@ -136,7 +136,7 @@ int session_waitinglist_push(struct session *session, struct qr_task *task) struct qr_task *session_waitinglist_get(const struct session *session) { - return queue_head(session->waiting); + return (queue_len(session->waiting) > 0) ? (queue_head(session->waiting)) : NULL; } struct qr_task *session_waitinglist_pop(struct session *session, bool deref) |