extdom: do not fail to process error case when no request is specified

Coverity CID 13130

Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Alexander Bokovoy authored and Martin Basti committed 2016-03-10 19:24:55 +01:00
1 parent f7429a2dec
commit 3208a09384
1 file changed
+1 -1
@@ -149,7 +149,7 @@ static int ipa_extdom_extop(Slapi_PBlock *pb)
rc = LDAP_SUCCESS; rc = LDAP_SUCCESS;
done: done:
if (req->err_msg != NULL) { if ((req != NULL) && (req->err_msg != NULL)) {
err_msg = req->err_msg; err_msg = req->err_msg;
} }
if (err_msg != NULL) { if (err_msg != NULL) {