Browse code

fixed DBG_QM compilation problem

Jiri Kuthan authored on 25/06/2002 17:46:07
Showing 1 changed files
... ...
@@ -159,7 +159,8 @@ int update_sock_struct_from_via( union sockaddr_union* to,
159 159
 			Yes -- it happened on generating a 408 by TM; -jiri
160 160
 		*/
161 161
 		if (via->host.s[via->host.len]){
162
-			if (!(host_copy=pkg_malloc( via->host.len+1 ))) {
162
+			host_copy=pkg_malloc( via->host.len+1 );
163
+			if (!host_copy) {
163 164
 				LOG(L_NOTICE, "ERROR: update_sock_struct_from_via: not enough memory\n");
164 165
 				return -1;
165 166
 			}
... ...
@@ -194,7 +195,7 @@ int forward_reply(struct sip_msg* msg)
194 195
 	
195 196
 	to=0;
196 197
 	new_buf=0;
197
-#ifdef Bogdan
198
+#ifndef BOGDANS_CUTOFF
198 199
 	/*check if first via host = us */
199 200
 	if (check_via){
200 201
 		for (r=0; r<sock_no; r++)