diff options
| author | Warner Losh <imp@FreeBSD.org> | 2010-09-15 15:38:47 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2010-09-15 15:38:47 +0000 |
| commit | 3dc2fd3f1e56f436b0dd7abfd9d319c73f0db4f5 (patch) | |
| tree | c0e800ea674bd8dcb317d3e9f002cc232847c713 /libexec | |
| parent | 198ec86bf986320fe57cb43c261fa3b4548d7797 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/tftpd/tftp-io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libexec/tftpd/tftp-io.c b/libexec/tftpd/tftp-io.c index 28628bab459f..8a39abdcd68d 100644 --- a/libexec/tftpd/tftp-io.c +++ b/libexec/tftpd/tftp-io.c @@ -398,8 +398,6 @@ receive_packet(int peer, char *data, int size, struct sockaddr_storage *from, int n; static int waiting; - pfrom = (from == NULL) ? &from_local : from; - if (debug&DEBUG_PACKETS) tftp_log(LOG_DEBUG, "Waiting %d seconds for packet", timeoutpacket); @@ -423,6 +421,7 @@ receive_packet(int peer, char *data, int size, struct sockaddr_storage *from, } waiting++; + pfrom = (from == NULL) ? &from_local : from; fromlen = sizeof(*pfrom); n = recvfrom(peer, data, size, 0, (struct sockaddr *)pfrom, &fromlen); |
