Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.bin/tftp Pull up revision 1.16 (requested by wiz in...



details:   https://anonhg.NetBSD.org/src/rev/e837c2dee5fb
branches:  netbsd-1-6
changeset: 530216:e837c2dee5fb
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Apr 28 12:52:41 2003 +0000

description:
Pull up revision 1.16 (requested by wiz in ticket #1139):
Fix sendto return value check (incomplete change in 1.14).
Noted by Brian Ginsbach in PR 19842.

diffstat:

 usr.bin/tftp/tftp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d31f5b400d18 -r e837c2dee5fb usr.bin/tftp/tftp.c
--- a/usr.bin/tftp/tftp.c       Mon Apr 28 12:48:59 2003 +0000
+++ b/usr.bin/tftp/tftp.c       Mon Apr 28 12:52:41 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tftp.c,v 1.15 2000/12/30 18:00:18 itojun Exp $ */
+/*     $NetBSD: tftp.c,v 1.15.2.1 2003/04/28 12:52:41 tron Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)tftp.c     8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: tftp.c,v 1.15 2000/12/30 18:00:18 itojun Exp $");
+__RCSID("$NetBSD: tftp.c,v 1.15.2.1 2003/04/28 12:52:41 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -402,7 +402,7 @@
        msglen = &tp->th_msg[length + 1] - ackbuf;
        if (trace)
                tpacket("sent", tp, (int)msglen);
-       if (sendto(f, ackbuf, msglen, 0, peer, peer->sa_len) != length)
+       if (sendto(f, ackbuf, msglen, 0, peer, peer->sa_len) != msglen)
                warn("nak");
 }
 



Home | Main Index | Thread Index | Old Index