missing break statement when searching for section cmd
Signature · 4 lines
-- regards; Peizhao
iw.c +3 -1
@@ -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;