Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
httpc: fix port checking in http_client_simple_reconnect()
  • Loading branch information
perexg committed Oct 18, 2015
1 parent 96a55b0 commit 500e547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpc.c
Expand Up @@ -1149,7 +1149,7 @@ http_client_simple_reconnect ( http_client_t *hc, const url_t *u )

if (u->scheme == NULL || u->scheme[0] == '\0' ||
u->host == NULL || u->host[0] == '\0' ||
u->port <= 0) {
u->port < 0) {
tvherror("httpc", "Invalid url '%s'", u->raw);
return -EINVAL;
}
Expand Down

0 comments on commit 500e547

Please sign in to comment.