Browse code

fixing wrong placement of cfg_update() (thanks to Ondrej Martinek)

Miklos Tirpak authored on 18/02/2008 13:47:51
Showing 1 changed files
... ...
@@ -505,6 +505,8 @@ int udp_rcv_loop()
505 505
 			continue;
506 506
 		}
507 507
 		
508
+		/* update the local config */
509
+		cfg_update();
508 510
 #ifdef USE_STUN
509 511
 			/* STUN support can be switched off even if it's compiled */
510 512
 			if (stun_allow_stun && (unsigned char)*buf == 0x00) {
... ...
@@ -514,8 +516,6 @@ int udp_rcv_loop()
514 514
 				}
515 515
 			} else
516 516
 #endif
517
-		/* update the local config */
518
-		cfg_update();
519 517
 		/* receive_msg must free buf too!*/
520 518
 		receive_msg(buf, len, &ri);
521 519