Parcourir la source

RADIUS server: Remove unreachable code

The previous break will already stop the loop, so this unnecessary check
can be removed (CID 72708).

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 10 ans
Parent
commit
54461f3e03
1 fichiers modifiés avec 0 ajouts et 2 suppressions
  1. 0 2
      src/radius/radius_server.c

+ 0 - 2
src/radius/radius_server.c

@@ -2048,8 +2048,6 @@ void radius_server_eap_pending_cb(struct radius_server_data *data, void *ctx)
 				sess = s;
 				break;
 			}
-			if (sess)
-				break;
 		}
 		if (sess)
 			break;