projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix ASAN warning.
[tinc]
/
src
/
subnet_parse.c
diff --git
a/src/subnet_parse.c
b/src/subnet_parse.c
index
044d6e7
..
312e310
100644
(file)
--- a/
src/subnet_parse.c
+++ b/
src/subnet_parse.c
@@
-307,7
+307,7
@@
bool str2net(subnet_t *subnet, const char *subnetstr) {
char *last_colon = strrchr(str, ':');
/* Check that the last colon is not further than possible in an IPv6 address */
- if(last_colon >= str + 5 * 8) {
+ if(last_colon
&& last_colon
>= str + 5 * 8) {
return false;
}