]> sourceware.org Git - systemtap.git/commitdiff
Add NULL check for PR_Close(local_file_fd)
authorLukas Berk <lberk@redhat.com>
Wed, 11 May 2011 17:27:25 +0000 (13:27 -0400)
committerLukas Berk <lberk@redhat.com>
Wed, 11 May 2011 17:27:25 +0000 (13:27 -0400)
nsscommon.cxx

index fdd93162a527eb5a26ae12b55b4e4813418d08b0..40b6333921ed8524c7846f0b825f67586d94cbb0 100644 (file)
@@ -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 : */
This page took 0.030317 seconds and 5 git commands to generate.