Commit 15f425bd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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!
parent 86109263
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -64,10 +64,9 @@ 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;

  /* Same with *nsrvreply. */
  if (nsrvreply)
  *nsrvreply = 0;

  /* Give up if abuf doesn't have room for a header. */