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
This commit is contained in:
alexei.volkov.bugs%sun.com
2006-10-31 00:21:24 +00:00
parent 26dcb5afb0
commit 524b9f24a6

View File

@@ -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);