Browse code

min_expires is not used when expires == 0.

Jan Janak authored on 02/03/2004 13:40:37
Showing 1 changed files
... ...
@@ -231,7 +231,7 @@ int calc_contact_expires(struct sip_msg* _m, param_t* _ep, int* _e)
231 231
 		if (*_e != 0) *_e += act_time;
232 232
 	}		
233 233
 
234
-	if ((*_e - act_time) < min_expires) {
234
+	if ((*_e != 0) && ((*_e - act_time) < min_expires)) {
235 235
 		*_e = min_expires + act_time;
236 236
 	}
237 237