Forráskód Böngészése

dns: comment addition

Andrei Pelinescu-Onciul 17 éve
szülő
commit
babf8af4e1
1 módosított fájl, 1 hozzáadás és 0 törlés
  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
  *          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)
+ * 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
  *          the entry anymore and *e!=0 (failling to do so => mem. leak)
  * Example: