Skip to content

Commit

Permalink
Dont deref 'to' if it's NULL.
Browse files Browse the repository at this point in the history
coverity: 1450948
  • Loading branch information
Linus Nordberg committed Aug 1, 2017
1 parent 1caa9c3 commit 8aef6cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ void sendrq(struct request *rq) {
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);
}

Expand Down

0 comments on commit 8aef6cf

Please sign in to comment.