diff options
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1280,8 +1280,11 @@ remove_entry(const char *inputfilename, int lineno, Xauth *auth, char *data) /* * unlink the auth we were asked to */ - while (!eq_auth((list = *listp)->auth, auth)) - listp = &list->next; + while (!eq_auth((list = *listp)->auth, auth)) { + listp = &list->next; + if (!*listp) + return 0; + } *listp = list->next; XauDisposeAuth (list->auth); /* free the auth */ free (list); /* free the link */ |