summaryrefslogtreecommitdiff
path: root/tlsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tlsd.c')
-rw-r--r--tlsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tlsd.c b/tlsd.c
index 5462741..db14bbf 100644
--- a/tlsd.c
+++ b/tlsd.c
@@ -798,7 +798,7 @@ int main (int argc,
/* TODO: consider using chdir or open/openat instead */
opt.peer_cert_path = malloc(opt.peer_cert_dir_len +
MAX_FINGERPRINT_NIBBLES + 1);
- if (! opt.peer_cert_path) {
+ if (opt.peer_cert_path == NULL) {
syslog(LOG_ERR, "Failed to allocate memory");
closelog();
return 1;
@@ -810,7 +810,7 @@ int main (int argc,
ret = serve(opt);
/* Cleanup and exit */
- if (opt.peer_cert_path)
+ if (opt.peer_cert_path != NULL)
free(opt.peer_cert_path);
closelog();
return ret;