Bläddra i källkod

corrected bug in get_expiration_value

Vaclav Kubart 19 år sedan
förälder
incheckning
ecfb36283f
2 ändrade filer med 4 tillägg och 0 borttagningar
  1. 3 0
      lib/cds/ChangeLog
  2. 1 0
      lib/cds/sip_utils.c

+ 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;
 	}