fix .. in magiftpd

This commit is contained in:
Andrew Pamment 2017-03-22 12:57:07 +10:00
parent a16735e27c
commit c5d4afbe7b

View File

@ -76,6 +76,7 @@ static void parse_path(struct ftpclient *client, char *path, char **result) {
pptr = pptr->prev; pptr = pptr->prev;
free(pptr->next); free(pptr->next);
pptr->next = NULL; pptr->next = NULL;
pptr->data = NULL;
} }
} else if (strcmp(ptr, ".") != 0) { } else if (strcmp(ptr, ".") != 0) {
pptr->data = ptr; pptr->data = ptr;