summaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2001-07-17 16:17:17 +0000
committerse <se@FreeBSD.org>2001-07-17 16:17:17 +0000
commita1dd6e91b98eeaebd9f99e2513343188c593803e (patch)
treeb2d2c36317d1c0920f171521546ecb8bea23514a /ftp
parent330651a6cf405e8e22b63d7a2136f25f8fdca4d1 (diff)
downloadFreeBSD-ports-a1dd6e91b98eeaebd9f99e2513343188c593803e.zip
FreeBSD-ports-a1dd6e91b98eeaebd9f99e2513343188c593803e.tar.gz
Fix bug in linked list handling that caused a seg fault
Diffstat (limited to 'ftp')
-rw-r--r--ftp/jftpgw/files/patch-0323
1 files changed, 23 insertions, 0 deletions
diff --git a/ftp/jftpgw/files/patch-03 b/ftp/jftpgw/files/patch-03
new file mode 100644
index 0000000..abd557c
--- /dev/null
+++ b/ftp/jftpgw/files/patch-03
@@ -0,0 +1,23 @@
+*** config.c~ Sat Jun 30 16:34:42 2001
+--- config.c Tue Jul 17 16:17:24 2001
+***************
+*** 468,476 ****
+ }
+ while (hl) {
+ if (hl->next == entry) {
+- hl->next = hl->next->next;
+ delete = hl->next;
+ delete->next = (struct hostent_list*) 0;
+ hostent_destroy(delete);
+ return;
+ } else {
+--- 468,476 ----
+ }
+ while (hl) {
+ if (hl->next == entry) {
+ delete = hl->next;
+ delete->next = (struct hostent_list*) 0;
++ hl->next = hl->next->next;
+ hostent_destroy(delete);
+ return;
+ } else {
OpenPOWER on IntegriCloud