Skip to content

Commit

Permalink
pxe: allow TFTP server IP to be empty when not using TFTP
Browse files Browse the repository at this point in the history
Reported-by: Marcus Grando <Marcus.Grando@corp.terra.com.br>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 28, 2011
1 parent 239fed5 commit 9126eb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/fs/pxe/pxe.c
Expand Up @@ -754,9 +754,6 @@ static void __pxe_searchdir(const char *filename, struct file *file)
break;
}

if (!ip)
return; /* No server */

buf++; /* Point *past* the final NULL */
memcpy(buf, rrq_tail, sizeof rrq_tail);
buf += sizeof rrq_tail;
Expand Down Expand Up @@ -792,6 +789,9 @@ static void __pxe_searchdir(const char *filename, struct file *file)
}
#endif /* GPXE */

if (!ip)
goto done; /* No server */

timeout_ptr = TimeoutTable; /* Reset timeout */

sendreq:
Expand Down

0 comments on commit 9126eb2

Please sign in to comment.