1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 11:59:48 +00:00

no need to check for NULL pointers before dereferencing, as the pointers

MUST be valid and they are dereferenced further down in the function
unconditionally!
This commit is contained in:
Daniel Stenberg
2009-10-29 09:12:40 +00:00
parent 2f84a75012
commit df2dc91fd4

View File

@ -64,11 +64,10 @@ ares_parse_srv_reply (const unsigned char *abuf, int alen,
struct ares_srv_reply *srv = NULL;
/* Set *srv_out to NULL for all failure cases. */
if (srv_out)
*srv_out = NULL;
*srv_out = NULL;
/* Same with *nsrvreply. */
if (nsrvreply)
*nsrvreply = 0;
*nsrvreply = 0;
/* Give up if abuf doesn't have room for a header. */
if (alen < HFIXEDSZ)