Browse code

- t_write fixed (reported by Stefan Sayer) - forward.h update_sock_struct_from_ip typo fixed (reported by Richard Fogel)

Andrei Pelinescu-Onciul authored on 22/11/2004 22:51:17
Showing 3 changed files
... ...
@@ -50,7 +50,7 @@ MAIN_NAME=ser
50 50
 VERSION = 0
51 51
 PATCHLEVEL = 8
52 52
 SUBLEVEL =   99
53
-EXTRAVERSION = -dev17
53
+EXTRAVERSION = -dev18
54 54
 
55 55
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
56 56
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
... ...
@@ -66,7 +66,7 @@ int update_sock_struct_from_via( union sockaddr_union* to,
66 66
 /* use src_ip, port=src_port if rport, via port if via port, 5060 otherwise */
67 67
 #define update_sock_struct_from_ip(  to, msg ) \
68 68
 	init_su((to), &(msg)->rcv.src_ip, \
69
-			(((msg)->via1->rport)||((msg)->msg_flags&&FL_FORCE_RPORT))? \
69
+			(((msg)->via1->rport)||((msg)->msg_flags&FL_FORCE_RPORT))? \
70 70
 							(msg)->rcv.src_port: \
71 71
 							((msg)->via1->port)?(msg)->via1->port: SIP_PORT )
72 72
 
... ...
@@ -457,10 +457,10 @@ int fixup_t_write( void** param, int param_no)
457 457
 					"<%s>\n",s);
458 458
 				return E_CFG;
459 459
 			}
460
-			*param=(void*)twi;
461 460
 		} else {
462 461
 			twi->action.len = strlen(twi->action.s);
463 462
 		}
463
+		*param=(void*)twi;
464 464
 	}
465 465
 
466 466
 	return 0;