Commit 8aef6cf8 authored by Linus Nordberg's avatar Linus Nordberg
Browse files

Dont deref 'to' if it's NULL.

coverity: 1450948
parent 1caa9c33
...@@ -537,7 +537,8 @@ errexit: ...@@ -537,7 +537,8 @@ errexit:
if (rq->from) if (rq->from)
rmclientrq(rq, rq->msg->id); rmclientrq(rq, rq->msg->id);
freerq(rq); freerq(rq);
pthread_mutex_unlock(&to->newrq_mutex); if (to)
removeclientrqs_sendrq_freeserver_lock(0); removeclientrqs_sendrq_freeserver_lock(0);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment