浏览代码

modules_k/pua: Fixed bug in pua_update_contact() in DB only mode

- This was updating the contact column when it should have been
  updating the remote_contact column.
Peter Dunkley 13 年之前
父节点
当前提交
0220bad8ca
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules_k/pua/pua_db.c

+ 2 - 2
modules_k/pua/pua_db.c

@@ -1407,7 +1407,7 @@ int update_contact_puadb(ua_pres_t *pres, str *contact)
 	n_query_cols++;
 
 	/* we overwrite contact even if not changed */
-	db_cols[n_update_cols] = &str_contact_col; /* had remote here, think was a bug */
+	db_cols[n_update_cols] = &str_remote_contact_col;
 	db_vals[n_update_cols].type = DB1_STR;
 	db_vals[n_update_cols].nul = 0; 
 	db_vals[n_update_cols].val.str_val.s = contact->s;
@@ -1566,4 +1566,4 @@ list_entry_t *get_subs_list_puadb(str *did)
 			&& (RES_ROWS(res)>0));
 
 	return list;
-}
+}