From 97b1f2ee59f604de8490789896ffeacfbf0219e3 Mon Sep 17 00:00:00 2001 From: Lukas Berk Date: Wed, 11 May 2011 13:27:25 -0400 Subject: [PATCH] Add NULL check for PR_Close(local_file_fd) --- nsscommon.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nsscommon.cxx b/nsscommon.cxx index fdd93162a..40b633392 100644 --- a/nsscommon.cxx +++ b/nsscommon.cxx @@ -1307,7 +1307,8 @@ void sign_file ( if (privKey) SECKEY_DestroyPrivateKey (privKey); CERT_DestroyCertificate (cert); - PR_Close (local_file_fd); + if(local_file_fd != NULL) + PR_Close (local_file_fd); } /* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */ -- 2.43.5