diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libtls/tls_config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_config.c b/src/lib/libtls/tls_config.c index 581c493a55..777dfc52f0 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.43 2017/08/10 18:18:30 jsing Exp $ */ | 1 | /* $OpenBSD: tls_config.c,v 1.44 2017/09/25 18:07:03 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,6 +311,9 @@ 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) | ||
315 | return TLS_PROTOCOLS_DEFAULT; | ||
316 | |||
314 | if ((s = strdup(protostr)) == NULL) | 317 | if ((s = strdup(protostr)) == NULL) |
315 | return (-1); | 318 | return (-1); |
316 | 319 | ||