Browse code

dispatcher: fix for checking reply code class rule

(cherry picked from commit 1ac02d9f0b436602cfc8bf72037ca7f84be3d67f)

Daniel-Constantin Mierla authored on 03/06/2022 09:21:14
Showing 1 changed files
... ...
@@ -1247,7 +1247,7 @@ int ds_ping_check_rplcode(int code)
1247 1247
 			}
1248 1248
 		} else {
1249 1249
 			/* reply class */
1250
-			if(((*ds_ping_reply_codes)[i] / 100) == code) {
1250
+			if((*ds_ping_reply_codes)[i] == code / 100) {
1251 1251
 				return 1;
1252 1252
 			}
1253 1253
 		}