Skip to content

Commit 9661836

Browse files
committed
Put fix in correct location.
1 parent e1aae6d commit 9661836

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/unix/sqUnixOpenSSL.c

+2-5
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ sqInt sqSetStringPropertySSL(sqInt handle, int propID, char *propName, sqInt pro
407407
property = strndup(propName, propLen);
408408
};
409409

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

412412
switch(propID) {
413413
case SQSSL_PROP_CERTNAME:
@@ -420,10 +420,7 @@ sqInt sqSetStringPropertySSL(sqInt handle, int propID, char *propName, sqInt pro
420420
break;
421421
default:
422422
if(property) free(property);
423-
if(ssl->loglevel) {
424-
printf("sqSetStringPropertySSL: Unknown property ID %d\n",
425-
propID ? propID : "(null)");
426-
}
423+
if(ssl->loglevel) printf("sqSetStringPropertySSL: Unknown property ID %d\n", propID);
427424
return 0;
428425
}
429426
return 1;

0 commit comments

Comments
 (0)