瀏覽代碼

dns: comment addition

Andrei Pelinescu-Onciul 17 年之前
父節點
當前提交
babf8af4e1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      dns_cache.c

+ 1 - 0
dns_cache.c

@@ -2598,6 +2598,7 @@ struct hostent* dns_sip_resolvehost(str* name, unsigned short* port,
  *          On end of records (when used to iterate on all the ips) it
  *          On end of records (when used to iterate on all the ips) it
  *          will return E_DNS_EOR (you should not log an error for this
  *          will return E_DNS_EOR (you should not log an error for this
  *          value, is just a signal that the address list end has been reached)
  *          value, is just a signal that the address list end has been reached)
+ * Note: either e or name must be different from 0 (name.s !=0 also)
  * WARNING: dns_hash_put(*e) must be called when you don't need
  * WARNING: dns_hash_put(*e) must be called when you don't need
  *          the entry anymore and *e!=0 (failling to do so => mem. leak)
  *          the entry anymore and *e!=0 (failling to do so => mem. leak)
  * Example:
  * Example: