CID:1215201 Explicit null dereferenced

This commit is contained in:
Michael Jerris 2014-05-22 15:39:59 +00:00
parent c768e4b6e6
commit b5a223cd1b
2 changed files with 1 additions and 2 deletions

View File

@ -1 +1 @@
Tue May 20 23:17:55 CDT 2014 Thu May 22 15:39:33 UTC 2014

View File

@ -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"); chain = su_sprintf(autohome, "%s/%s", path, "ca-bundle.crt");
if (access(chain, R_OK) != 0) chain = NULL; 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 ( !key ) key = su_sprintf(autohome, "%s/%s", path, "wss.pem");
if ( !cert ) cert = 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"); if ( !chain ) chain = su_sprintf(autohome, "%s/%s", path, "wss.pem");