mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
connect: Added missing $ in IPREGEX.
Fixes rlo#14.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user