summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-08-13 08:13:48 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-08-13 08:13:53 +0200
commit4cb717daa9f5ba4590d51d73dcbff69f988116d6 (patch)
treef5ec4476a2a8a1055299d6ffcab6c00c2839bd96 /src/common.h
parent07326e46e4c7f1109eb8436f926081f65af62d14 (diff)
downloadgnutls-4cb717daa9f5ba4590d51d73dcbff69f988116d6.tar.gz
gnutls-cli/danetool: corrected check on ipv6 IPs
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index f5e187622c..7b2682c96a 100644
--- a/src/common.h
+++ b/src/common.h
@@ -73,7 +73,7 @@ inline static int is_ip(const char *hostname)
{
int len = strlen(hostname);
- if (strchr(hostname, ':') == 0)
+ if (strchr(hostname, ':') != 0)
return 1;
else if (len > 2 && c_isdigit(hostname[0]) && c_isdigit(hostname[len-1]))
return 1;