summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libtls/tls_config.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_config.c b/src/lib/libtls/tls_config.c
index 777dfc52f0..e2e3f4abaa 100644
--- a/src/lib/libtls/tls_config.c
+++ b/src/lib/libtls/tls_config.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_config.c,v 1.44 2017/09/25 18:07:03 jsing Exp $ */ 1/* $OpenBSD: tls_config.c,v 1.45 2017/12/09 16:46:08 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -311,8 +311,10 @@ tls_config_parse_protocols(uint32_t *protocols, const char *protostr)
311 char *s, *p, *q; 311 char *s, *p, *q;
312 int negate; 312 int negate;
313 313
314 if (protostr == NULL) 314 if (protostr == NULL) {
315 return TLS_PROTOCOLS_DEFAULT; 315 *protocols = TLS_PROTOCOLS_DEFAULT;
316 return (0);
317 }
316 318
317 if ((s = strdup(protostr)) == NULL) 319 if ((s = strdup(protostr)) == NULL)
318 return (-1); 320 return (-1);