db9aaf09da
Move content from stx-gplv3 into stx-integ Packages will be relocated to stx-integ: base/ anaconda crontabs dnsmasq rsync database/ python-psycopg2 filesystem/ parted grub/ grub2 security/ python-keyring Change-Id: I357310173e6bd1a1005e76be619a5ff5c9bcbed4 Story: 2002801 Task: 22687 Signed-off-by: Scott Little <scott.little@windriver.com>
29 lines
758 B
Diff
29 lines
758 B
Diff
From 858e259bf7125695c068301d0ef56cc4750d6544 Mon Sep 17 00:00:00 2001
|
|
From: Don Penney <don.penney@windriver.com>
|
|
Date: Thu, 15 Sep 2016 13:32:03 -0400
|
|
Subject: [PATCH 1/1] Close tftp sockets immediately
|
|
|
|
---
|
|
src/tftp.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/tftp.c b/src/tftp.c
|
|
index d7d050f..ecc6ce8 100644
|
|
--- a/src/tftp.c
|
|
+++ b/src/tftp.c
|
|
@@ -768,9 +768,11 @@ int do_tftp_script_run(void)
|
|
if ((transfer = daemon->tftp_done_trans))
|
|
{
|
|
daemon->tftp_done_trans = transfer->next;
|
|
+#if 0 /* Disable delayed closing of TFTP UDP socket */
|
|
#ifdef HAVE_SCRIPT
|
|
queue_tftp(transfer->file->size, transfer->file->filename, &transfer->peer);
|
|
#endif
|
|
+#endif
|
|
free_transfer(transfer);
|
|
return 1;
|
|
}
|
|
--
|
|
1.9.1
|
|
|