Skip to contentSkip to conversation

missing break statement when searching for section cmd

PATCH Peizhao Hu 1 participant 1 message Jun 4, 2013

lore
Share & tools
lore

Peizhao Hu

author
#0 lore raw
Signature · 4 lines
-- 
regards;

Peizhao
iw.c +3 -1
index dc99566..4051a18 100644
@@ -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;