2
0
Эх сурвалжийг харах

corrected bug in get_expiration_value

Vaclav Kubart 19 жил өмнө
parent
commit
ecfb36283f

+ 3 - 0
lib/cds/ChangeLog

@@ -1,3 +1,6 @@
+2006-06-21
+	* corrected bug in get_expiration_value (result was always -1/1)
+
 2006-06-13
 	* added few common SIP/SER functions into sip_utils.h
 	* added functions for traversing hash table

+ 1 - 0
lib/cds/sip_utils.c

@@ -18,6 +18,7 @@ int get_expiration_value(struct sip_msg *m, int *value)
 			return -1;
 		}
 
+		res = 0;
 		expires = (exp_body_t *)m->expires->parsed;
 		if (expires) if (expires->valid && value) *value = expires->val;
 	}