From 7c4b574e1bc2adcaaab9b3bb3b93f90608b1caf1 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sat, 2 Apr 2016 20:10:17 -0500 Subject: [PATCH] authd: avoid crash on full reload --- authd/authd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authd/authd.c b/authd/authd.c index 5218dc124..b122db2ee 100644 --- a/authd/authd.c +++ b/authd/authd.c @@ -104,13 +104,13 @@ handle_reload(int parc, char *parv[]) { authd_reload_handler handler; - if(parc < 2) + if(parc <= 2) { /* Reload all handlers */ for(size_t i = 0; i < 256; i++) { if ((handler = authd_reload_handlers[(unsigned char) i]) != NULL) - handler(parv[1][0]); + handler('\0'); } return;