server: Assert that a client has a stream open when processing a message

pull/42/head
Andri Yngvason 2020-07-16 18:14:52 +00:00
parent 33eda8c5d0
commit 683776cdf0
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ static void on_client_event(struct stream* stream, enum stream_event event)
{ {
struct nvnc_client* client = stream->userdata; struct nvnc_client* client = stream->userdata;
assert(client->net_stream == stream); assert(client->net_stream && client->net_stream == stream);
if (event == STREAM_EVENT_REMOTE_CLOSED) { if (event == STREAM_EVENT_REMOTE_CLOSED) {
log_debug("Client %p (%d) hung up\n", client, client->ref); log_debug("Client %p (%d) hung up\n", client, client->ref);