You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/12/03 03:33:05 UTC

svn commit: r481689 - /webservices/axis2/trunk/c/rampart/src/omxmlsec/openssl/x509.c

Author: samisa
Date: Sat Dec  2 18:33:03 2006
New Revision: 481689

URL: http://svn.apache.org/viewvc?view=rev&rev=481689
Log:
Fixed warning by considering the return values of the OpenSSL functions

Modified:
    webservices/axis2/trunk/c/rampart/src/omxmlsec/openssl/x509.c

Modified: webservices/axis2/trunk/c/rampart/src/omxmlsec/openssl/x509.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/omxmlsec/openssl/x509.c?view=diff&rev=481689&r1=481688&r2=481689
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/omxmlsec/openssl/x509.c (original)
+++ webservices/axis2/trunk/c/rampart/src/omxmlsec/openssl/x509.c Sat Dec  2 18:33:03 2006
@@ -88,6 +88,7 @@
     axis2_char_t *filename,
     X509 **cert)
 {
+    axis2_status_t status = AXIS2_SUCCESS;
     BIO *in;
 
     if ((in=BIO_new_file(filename,"r")) == NULL)
@@ -102,10 +103,14 @@
         printf("Error creating the certificate\n");
         return AXIS2_FAILURE;
     }
-    BIO_reset(in);
-    BIO_free(in);    
     
-    return AXIS2_SUCCESS;
+    if (BIO_reset(in) != 1)
+        status = AXIS2_FAILURE;
+    
+    if (BIO_free(in) != 1)
+        status = AXIS2_FAILURE;
+    
+    return status;
 }
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org