Browse code

*** empty log message ***

Jan Janak authored on 27/08/2002 13:38:23
Showing 1 changed files
... ...
@@ -142,8 +142,10 @@ static inline int insert(struct sip_msg* _m, contact_t* _c, udomain_t* _d, str*
142 142
 	
143 143
 	if (r && !r->contacts) {
144 144
 		ul_delete_urecord(_d, _u);
145
+	} else {
146
+		build_contact(r->contacts);
145 147
 	}
146
-
148
+	
147 149
 	return 0;
148 150
 }
149 151
 
... ...
@@ -242,7 +244,7 @@ static inline int update(struct sip_msg* _m, urecord_t* _r, contact_t* _c)
242 244
 				}
243 245
 			}
244 246
 		}
245
-		_c = _c->next;
247
+		_c = get_next_contact(_c);
246 248
 	}
247 249
 
248 250
 	return 0;