Browse code

*** empty log message ***

Jan Janak authored on 27/08/2002 14:23:05
Showing 1 changed files
... ...
@@ -102,7 +102,7 @@ int lookup(struct sip_msg* _m, char* _t, char* _s)
102 102
 	     /* Append branches if enabled */
103 103
 	if (!append_branches) goto skip;
104 104
 
105
-	ptr = ptr->next;
105
+	if (ptr) ptr = ptr->next;
106 106
 	while(ptr) {
107 107
 		if (ptr->expires > act_time) {
108 108
 			if (append_branch(_m, ptr->c.s, ptr->c.len) == -1) {