mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
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>
This commit is contained in:
parent
895ffe41c2
commit
8092650298
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user