Skip to content

Commit

Permalink
Put fix in correct location.
Browse files Browse the repository at this point in the history
  • Loading branch information
krono committed Jul 29, 2015
1 parent e1aae6d commit 9661836
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/unix/sqUnixOpenSSL.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ sqInt sqSetStringPropertySSL(sqInt handle, int propID, char *propName, sqInt pro
property = strndup(propName, propLen);
};

if(ssl->loglevel) printf("sqSetStringPropertySSL(%d): %s\n", propID, property);
if(ssl->loglevel) printf("sqSetStringPropertySSL(%d): %s\n", propID, property ? property : "(null)");

switch(propID) {
case SQSSL_PROP_CERTNAME:
Expand All @@ -420,10 +420,7 @@ sqInt sqSetStringPropertySSL(sqInt handle, int propID, char *propName, sqInt pro
break;
default:
if(property) free(property);
if(ssl->loglevel) {
printf("sqSetStringPropertySSL: Unknown property ID %d\n",
propID ? propID : "(null)");
}
if(ssl->loglevel) printf("sqSetStringPropertySSL: Unknown property ID %d\n", propID);
return 0;
}
return 1;
Expand Down

0 comments on commit 9661836

Please sign in to comment.