summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-05-16 10:08:07 +0200
committerDaiki Ueno <dueno@redhat.com>2017-05-16 10:08:07 +0200
commit059fe46611aee0a839e4f5143e1d1cd2ca519576 (patch)
tree8b859314b91dd475f7c09533f7a71b1b722bf87a
parent575a754db0fcbb98d426dadd23ef057c8c727f6d (diff)
downloadnss-hg-059fe46611aee0a839e4f5143e1d1cd2ca519576.tar.gz
Bug 1365193, util: fix null pointer dereference pointed by coverity, r=kaie
-rw-r--r--lib/util/pkcs11uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/pkcs11uri.c b/lib/util/pkcs11uri.c
index 1be058542..453440293 100644
--- a/lib/util/pkcs11uri.c
+++ b/lib/util/pkcs11uri.c
@@ -681,7 +681,7 @@ PK11URI_ParseURI(const char *string)
result = pk11uri_AllocURI();
if (result == NULL) {
- goto fail;
+ return NULL;
}
/* Parse the path component and its attributes. */