浏览代码

modules_k/pua: send_publish() doesn't work correctly in DB only mode with certain DBs

- The pua record wasn't getting inserted in some cases
- Looks like I removed a couple of lines I shouldn't have when merging
  from Crocodile's internal SVN repository to git
- Issue found by Hugh Waite @ Crocodile RCS and fixed by Hugh Waite and
  Peter Dunkley @ Crocodile RCS
Peter Dunkley 13 年之前
父节点
当前提交
78da4d35df
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      modules_k/pua/pua_db.c

+ 3 - 0
modules_k/pua/pua_db.c

@@ -989,6 +989,9 @@ int update_record_puadb(ua_pres_t *pres, int expires, str *etag)
 		return -1;
 	}
 
+	if (pua_dbf.affected_rows != NULL)
+		return pua_dbf.affected_rows(pua_db);
+
 	return 1;
 }