From: Denis Zaitceff Date: Sat, 24 May 2014 15:27:45 +0000 (+0600) Subject: Avoid list corruption in load_table() X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=026c8f47bbaf401c93f5e14b560746ef724a8161;p=portmap.git Avoid list corruption in load_table() load_table() currently swallows the current - last in the list - (*ep) item. This may be a registration of the UDP port that portmap listens on. Signed-off-by: Neil Brown --- diff --git a/portmap.c b/portmap.c index 5a935dc..ed8e50c 100644 --- a/portmap.c +++ b/portmap.c @@ -871,7 +871,7 @@ static void load_table(void) struct flagged_pml fpml, *fpmlp; ep = &pmaplist; - while ((*ep)->pml_next) + while (*ep) ep = & (*ep)->pml_next; if (store_fd < 0)