From b5a223cd1b28200fcefa1eac63678f21be5cdc30 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 22 May 2014 15:39:59 +0000 Subject: [PATCH] CID:1215201 Explicit null dereferenced --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index caa693566d..f85032292f 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Tue May 20 23:17:55 CDT 2014 +Thu May 22 15:39:33 UTC 2014 diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c b/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c index 5dddccdf0e..265eef2383 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c +++ b/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c @@ -368,7 +368,6 @@ static int tport_ws_init_primary_secure(tport_primary_t *pri, chain = su_sprintf(autohome, "%s/%s", path, "ca-bundle.crt"); if (access(chain, R_OK) != 0) chain = NULL; - if (access(cert, R_OK) != 0) cert = NULL; if ( !key ) key = su_sprintf(autohome, "%s/%s", path, "wss.pem"); if ( !cert ) cert = su_sprintf(autohome, "%s/%s", path, "wss.pem"); if ( !chain ) chain = su_sprintf(autohome, "%s/%s", path, "wss.pem");