]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
httpc: fix port checking in http_client_simple_reconnect()
authorJaroslav Kysela <perex@perex.cz>
Sun, 18 Oct 2015 08:58:16 +0000 (10:58 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 18 Oct 2015 08:58:16 +0000 (10:58 +0200)
src/httpc.c

index d524332f3c7f5ccaa9d719209bbe1b99be291b5b..34880f7206fa83f9d0cf60d19790b316e5b1e3fd 100644 (file)
@@ -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;
   }