969edcff63
Porting 2 patches close-tftp-sockets-immediately.patch dnsmasq-update-ipv6-leases-from-config.patch Story: 2009221 Task: 43439 Signed-off-by: Yue Tao <yue.tao@windriver.com> Change-Id: Ia1ad6965f6b8170252edf020733b4ce2b12b110c
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
|
|
@@ -847,9 +847,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
|
|
|