Browse code

*** empty log message ***

Jan Janak authored on 27/08/2002 15:12:56
Showing 1 changed files
... ...
@@ -140,10 +140,12 @@ static inline int insert(struct sip_msg* _m, contact_t* _c, udomain_t* _d, str*
140 140
 		_c = get_next_contact(_c);
141 141
 	}
142 142
 	
143
-	if (r && !r->contacts) {
144
-		ul_delete_urecord(_d, _u);
145
-	} else {
146
-		build_contact(r->contacts);
143
+	if (r) {
144
+		if (!r->contacts) {
145
+			ul_delete_urecord(_d, _u);
146
+		} else {
147
+			build_contact(r->contacts);
148
+		}
147 149
 	}
148 150
 	
149 151
 	return 0;