diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-08-13 08:13:48 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-08-13 08:13:53 +0200 |
commit | 4cb717daa9f5ba4590d51d73dcbff69f988116d6 (patch) | |
tree | f5ec4476a2a8a1055299d6ffcab6c00c2839bd96 | |
parent | 07326e46e4c7f1109eb8436f926081f65af62d14 (diff) | |
download | gnutls-4cb717daa9f5ba4590d51d73dcbff69f988116d6.tar.gz |
gnutls-cli/danetool: corrected check on ipv6 IPs
-rw-r--r-- | src/common.h | 2 |
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; |