aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-12-29 19:47:27 +0100
committerAndreas Schneider <asn@cynapses.org>2010-12-29 19:48:15 +0100
commit69ac51dfaab14b79436c584f88777c2b0aea5c33 (patch)
tree56d778e5e2b14d6f60b6a59aed83128446bece28 /src
parent3e2f714248c6cdad706303027dea7fab4e2b1bab (diff)
downloadlibssh-69ac51dfaab14b79436c584f88777c2b0aea5c33.tar.gz
libssh-69ac51dfaab14b79436c584f88777c2b0aea5c33.tar.xz
libssh-69ac51dfaab14b79436c584f88777c2b0aea5c33.zip
connect: Added missing $ in IPREGEX.
Fixes rlo#14.
Diffstat (limited to 'src')
-rw-r--r--src/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connect.c b/src/connect.c
index 92421a6d..20322c0b 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -122,7 +122,7 @@ void ssh_sock_set_blocking(socket_t sock) {
#endif /* _WIN32 */
#ifdef HAVE_REGCOMP
-#define IPEXPR "^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}"
+#define IPEXPR "^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$"
static regex_t *ip_regex = NULL;