From c5d4afbe7b6a8c6907b0867a352e53be8003f7a8 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 22 Mar 2017 12:57:07 +1000 Subject: [PATCH] fix .. in magiftpd --- utils/magiftpd/magiftpd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/magiftpd/magiftpd.c b/utils/magiftpd/magiftpd.c index 20b16bb..959ddc7 100644 --- a/utils/magiftpd/magiftpd.c +++ b/utils/magiftpd/magiftpd.c @@ -76,6 +76,7 @@ static void parse_path(struct ftpclient *client, char *path, char **result) { pptr = pptr->prev; free(pptr->next); pptr->next = NULL; + pptr->data = NULL; } } else if (strcmp(ptr, ".") != 0) { pptr->data = ptr;