[PATCH] hostap_rid pints zeroes on error

Pavel Roskin proski
Wed Mar 31 15:02:12 PST 2004


Hello!

The hostap_rid utility prints many zeroes if it fails to read the data.
It shouldn't print anything but the error message.  The patch is attached.

-- 
Regards,
Pavel Roskin
-------------- next part --------------
--- utils/hostap_rid.c
+++ utils/hostap_rid.c
@@ -51,6 +51,7 @@ static int get_rid(const char *dev, u16 
 	}
 	if (res == ENODATA) {
 		printf("Get RID did not return any data.\n");
+		return -1;
 	} else if (res) {
 		printf("Could not communicate with the kernel driver.\n");
 		return -1;



More information about the Hostap mailing list