summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-04-27 02:49:01 +0200
committerAnatol Belski <ab@php.net>2017-04-27 02:49:01 +0200
commitbf3e2dce7b54988d82f16ee3564c14f1b5cd936b (patch)
treef6eb537ed7034a09e00ec564646fc582f461018d
parent36301bd615a610d17880d1def060ce782df521ed (diff)
downloadphp-git-bf3e2dce7b54988d82f16ee3564c14f1b5cd936b.tar.gz
Revert "Follow up patch regarding bug #74216, see bug #74429"
This reverts commit cda7dcf4cacef3346f9dc2a4dc947e6a74769259.
-rw-r--r--main/streams/xp_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c
index 92be333260..3ff64787aa 100644
--- a/main/streams/xp_socket.c
+++ b/main/streams/xp_socket.c
@@ -581,7 +581,7 @@ static inline char *parse_ip_address_ex(const char *str, size_t str_len, int *po
return NULL;
}
*portno = strtol(p + 2, &e, 10);
- if (e && *e && *e != '/') {
+ if (e && *e) {
if (get_err) {
*err = strpprintf(0, "Failed to parse address \"%s\"", str);
}
@@ -600,7 +600,7 @@ static inline char *parse_ip_address_ex(const char *str, size_t str_len, int *po
if (colon) {
char *e = NULL;
*portno = strtol(colon + 1, &e, 10);
- if (!e || !*e || *e == '/') {
+ if (!e || !*e) {
return estrndup(str, colon - str);
}
}