[Midnightbsd-cvs] src [7870] trunk/libexec/tftpd/tftp-io.c: work around errors that happen with intel pxe boot loader

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Sep 14 12:21:40 EDT 2016


Revision: 7870
          http://svnweb.midnightbsd.org/src/?rev=7870
Author:   laffer1
Date:     2016-09-14 12:21:39 -0400 (Wed, 14 Sep 2016)
Log Message:
-----------
work around errors that happen with intel pxe boot loader

Modified Paths:
--------------
    trunk/libexec/tftpd/tftp-io.c

Modified: trunk/libexec/tftpd/tftp-io.c
===================================================================
--- trunk/libexec/tftpd/tftp-io.c	2016-09-14 16:20:45 UTC (rev 7869)
+++ trunk/libexec/tftpd/tftp-io.c	2016-09-14 16:21:39 UTC (rev 7870)
@@ -463,7 +463,8 @@
 	}
 
 	if (pkt->th_opcode == ERROR) {
-		tftp_log(LOG_ERR, "Got ERROR packet: %s", pkt->th_msg);
+		tftp_log(pkt->th_code == EUNDEF ? LOG_DEBUG : LOG_ERR,
+		    "Got ERROR packet: %s", pkt->th_msg);
 		return (RP_ERROR);
 	}
 



More information about the Midnightbsd-cvs mailing list