mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-02-03 18:49:28 -05:00
QUIC/requestor: fix crash when counterpart closes connection
This commit is contained in:
parent
25b423c483
commit
d2f5da6d52
1 changed files with 3 additions and 0 deletions
|
|
@ -255,6 +255,9 @@ int knot_qreq_recv(struct knot_quic_reply *r, struct iovec *out, int timeout_ms)
|
|||
if (ret != KNOT_EOK) {
|
||||
return ret;
|
||||
}
|
||||
if (conn->conn == NULL) {
|
||||
return KNOT_ECONN;
|
||||
}
|
||||
}
|
||||
|
||||
knot_tcp_inbufs_upd_res_t *firstib = stream->inbufs;
|
||||
|
|
|
|||
Loading…
Reference in a new issue