Greetings,

I tried updating my thesis' branch to current mainline and noticed a bug in 
addr.c - inet_naddr_parse() fails on IPv4 addresses with a prefix (e.g. 
128.128.128.0/24). My proposed fix is attached to the mail.

JB
=== modified file 'uspace/lib/c/generic/inet/addr.c'
--- uspace/lib/c/generic/inet/addr.c	2015-05-15 18:19:26 +0000
+++ uspace/lib/c/generic/inet/addr.c	2015-06-24 23:15:39 +0000
@@ -308,6 +308,11 @@
 		if (*cur == '\0')
 			break;
 
+		if (*cur == '/') {
+			cur++;
+			break;
+		}
+
 		if (*cur != '.')
 			return EINVAL;
 

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to