projects
/
p0f-client-exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb1999e
)
Check for # of segments of ipv6 address within range
author
Joshua Drake
<zamnedix@sleepermud.net>
Mon, 30 Nov 2015 21:25:56 +0000
(13:25 -0800)
committer
Joshua Drake
<zamnedix@sleepermud.net>
Mon, 30 Nov 2015 21:25:56 +0000
(13:25 -0800)
p0f-client-exim.c
patch
|
blob
|
blame
|
history
diff --git
a/p0f-client-exim.c
b/p0f-client-exim.c
index 923e169d600c060bf3d323ec72483fa0dc7cb3d2..73a3a128661e8eaf3036713123d33cb47b087346 100644
(file)
--- a/
p0f-client-exim.c
+++ b/
p0f-client-exim.c
@@
-86,7
+86,7
@@
static void parse_addr6(char* str, u8* ret) {
}
- if (seg
!= 6
) {
+ if (seg
< 6 || seg > 8
) {
SAYF("Malformed IPv6 address (incorrect number of segments parsed)");
exit(1);
}