Date: Sat, 2 Mar 2013 17:21:45 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r247647 - stable/8/libexec/tftpd Message-ID: <201303021721.r22HLjIp073531@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marius Date: Sat Mar 2 17:21:44 2013 New Revision: 247647 URL: http://svnweb.freebsd.org/changeset/base/247647 Log: MFC: r231973 Avoid error log for transfer stop w/o error code. Modified: stable/8/libexec/tftpd/tftp-io.c Directory Properties: stable/8/libexec/tftpd/ (props changed) Modified: stable/8/libexec/tftpd/tftp-io.c ============================================================================== --- stable/8/libexec/tftpd/tftp-io.c Sat Mar 2 17:18:38 2013 (r247646) +++ stable/8/libexec/tftpd/tftp-io.c Sat Mar 2 17:21:44 2013 (r247647) @@ -462,7 +462,8 @@ receive_packet(int peer, char *data, int } 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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303021721.r22HLjIp073531>