Browse Source

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

Andrei Pelinescu-Onciul 21 years ago
parent
commit
059afe051d
3 changed files with 3 additions and 3 deletions
  1. 1 1
      Makefile.defs
  2. 1 1
      forward.h
  3. 1 1
      modules/tm/t_fifo.c

+ 1 - 1
Makefile.defs

@@ -50,7 +50,7 @@ MAIN_NAME=ser
 VERSION = 0
 PATCHLEVEL = 8
 SUBLEVEL =   99
-EXTRAVERSION = -dev17
+EXTRAVERSION = -dev18
 
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")

+ 1 - 1
forward.h

@@ -66,7 +66,7 @@ int update_sock_struct_from_via( union sockaddr_union* to,
 /* use src_ip, port=src_port if rport, via port if via port, 5060 otherwise */
 #define update_sock_struct_from_ip(  to, msg ) \
 	init_su((to), &(msg)->rcv.src_ip, \
-			(((msg)->via1->rport)||((msg)->msg_flags&&FL_FORCE_RPORT))? \
+			(((msg)->via1->rport)||((msg)->msg_flags&FL_FORCE_RPORT))? \
 							(msg)->rcv.src_port: \
 							((msg)->via1->port)?(msg)->via1->port: SIP_PORT )
 

+ 1 - 1
modules/tm/t_fifo.c

@@ -457,10 +457,10 @@ int fixup_t_write( void** param, int param_no)
 					"<%s>\n",s);
 				return E_CFG;
 			}
-			*param=(void*)twi;
 		} else {
 			twi->action.len = strlen(twi->action.s);
 		}
+		*param=(void*)twi;
 	}
 
 	return 0;