Browse code

corrected bug in get_expiration_value

Vaclav Kubart authored on 21/06/2006 08:25:41
Showing 2 changed files
... ...
@@ -1,3 +1,6 @@
1
+2006-06-21
2
+	* corrected bug in get_expiration_value (result was always -1/1)
3
+
1 4
 2006-06-13
2 5
 	* added few common SIP/SER functions into sip_utils.h
3 6
 	* added functions for traversing hash table
... ...
@@ -18,6 +18,7 @@ int get_expiration_value(struct sip_msg *m, int *value)
18 18
 			return -1;
19 19
 		}
20 20
 
21
+		res = 0;
21 22
 		expires = (exp_body_t *)m->expires->parsed;
22 23
 		if (expires) if (expires->valid && value) *value = expires->val;
23 24
 	}