]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Check the return code properly.
authorBill Stoddard <stoddard@apache.org>
Wed, 7 Nov 2001 01:43:20 +0000 (01:43 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 7 Nov 2001 01:43:20 +0000 (01:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@91774 13f79535-47bb-0310-9956-ffa450edef68

ssl_scache_dbm.c

index 946efe371f01cc2aed88b5f62a043df157025049..62186c6e02bf9f9d09d9ab3b93bc9c87da9d9c37 100644 (file)
@@ -177,7 +177,7 @@ BOOL ssl_scache_dbm_store(server_rec *s, UCHAR *id, int idlen, time_t expiry, SS
         free(dbmval.dptr);
         return FALSE;
     }
-    if (apr_dbm_store(dbm, dbmkey, dbmval) < 0) {
+    if (apr_dbm_store(dbm, dbmkey, dbmval) != APR_SUCCESS) {
         ssl_log(s, SSL_LOG_ERROR|SSL_ADD_ERRNO,
                 "Cannot store SSL session to DBM file `%s'",
                 mc->szSessionCacheDataFile);