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

Dont deref 'to' if it's NULL.

coverity: 1450948
parent 1caa9c33
......@@ -537,7 +537,8 @@ errexit:
if (rq->from)
rmclientrq(rq, rq->msg->id);
freerq(rq);
pthread_mutex_unlock(&to->newrq_mutex);
if (to)
pthread_mutex_unlock(&to->newrq_mutex);
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