diff options
author | Roumen Petrov <openssl@roumenpetrov.info> | 2016-02-06 13:07:39 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-02-08 15:41:36 +0100 |
commit | 80926502986a97eed53afe1d85fc074e40829547 (patch) | |
tree | d58e6603b6723bf49a8e9347179ae84fc44515e5 /crypto/bio/b_addr.c | |
parent | GH322 revisited: remove unused function. (diff) | |
download | openssl-80926502986a97eed53afe1d85fc074e40829547.tar.xz openssl-80926502986a97eed53afe1d85fc074e40829547.zip |
avoid crash if hostserv is with host part only
(if priority is set to host)
Signed-off-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/bio/b_addr.c')
-rw-r--r-- | crypto/bio/b_addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c index f1ff5fe37c..a2a0dd2647 100644 --- a/crypto/bio/b_addr.c +++ b/crypto/bio/b_addr.c @@ -505,7 +505,7 @@ int BIO_parse_hostserv(const char *hostserv, char **host, char **service, } } - if (strchr(p, ':')) + if (p != NULL && strchr(p, ':')) goto spec_err; if (h != NULL && host != NULL) { |