From 524b9f24a61220967a5d2558d066f26ed46cae77 Mon Sep 17 00:00:00 2001 From: "alexei.volkov.bugs%sun.com" Date: Tue, 31 Oct 2006 00:21:24 +0000 Subject: [PATCH] additional fix for 353909: klocwork ptr dereference before NULL check in devutil.c. r=nelson git-svn-id: svn://10.0.0.236/trunk@214446 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/lib/dev/devutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/security/nss/lib/dev/devutil.c b/mozilla/security/nss/lib/dev/devutil.c index 647100c91f6..af607210538 100644 --- a/mozilla/security/nss/lib/dev/devutil.c +++ b/mozilla/security/nss/lib/dev/devutil.c @@ -35,7 +35,7 @@ * ***** END LICENSE BLOCK ***** */ #ifdef DEBUG -static const char CVS_ID[] = "@(#) $RCSfile: devutil.c,v $ $Revision: 1.27 $ $Date: 2006-10-31 00:05:04 $"; +static const char CVS_ID[] = "@(#) $RCSfile: devutil.c,v $ $Revision: 1.28 $ $Date: 2006-10-31 00:21:24 $"; #endif /* DEBUG */ #ifndef DEVM_H @@ -691,7 +691,7 @@ create_object ( slot = nssToken_GetSlot(object->token); if (!slot) { - nss_SetError(NSS_ERROR_INVALUD_POINTER); + nss_SetError(NSS_ERROR_INVALID_POINTER); goto loser; } session = nssToken_GetDefaultSession(object->token);