Search Linux Wireless

missing break statement when searching for section cmd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--
regards;

Peizhao

diff --git a/iw.c b/iw.c
index dc99566..4051a18 100644
--- a/iw.c
+++ b/iw.c
@@ -359,8 +359,10 @@ static int __handle_cmd(struct nl80211_state *state, enum id_input idby,
 		/* ok ... bit of a hack for the dupe 'info' section */
 		if (match && sectcmd->idby != command_idby)
 			continue;
-		if (strcmp(sectcmd->name, section) == 0)
+		if (strcmp(sectcmd->name, section) == 0){
 			match = sectcmd;
+			break;
+		}
 	}
 
 	sectcmd = match;

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux