Browse code

dns: comment addition

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