diff options
author | Linus Nordberg <linus@nordu.net> | 2017-07-30 21:47:24 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-08-01 18:25:36 +0200 |
commit | 8aef6cf8292b805db7a8b118fb584058cdfab97e (patch) | |
tree | 2e226083f36a8f8a62f143980248719e6dc13b93 /radsecproxy.c | |
parent | 1caa9c33330c1927fd9435d919607d513d8b3f89 (diff) |
Dont deref 'to' if it's NULL.
coverity: 1450948
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index a62d3e6..778d3b7 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -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); } |