diff options
Diffstat (limited to 'dependencies')
-rw-r--r-- | dependencies/nDPIsrvd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dependencies/nDPIsrvd.h b/dependencies/nDPIsrvd.h index 9e64260d4..6623758d6 100644 --- a/dependencies/nDPIsrvd.h +++ b/dependencies/nDPIsrvd.h @@ -702,7 +702,7 @@ static inline int nDPIsrvd_setup_address(struct nDPIsrvd_address * const address } if (destination[0] == '[') { - if (last_colon > destination && *(last_colon - 1) != ']') + if (last_colon - destination > 1 && *(last_colon - 1) != ']') { return 1; } |