]> jfr.im git - solanum.git/blobdiff - authd/authd.c
authd: fix undefined behaviour
[solanum.git] / authd / authd.c
index b4502a6854bc39a925bc3183cfc502829de1f45d..836d07a54f74c665a213e325ff85e65a92fa1848 100644 (file)
@@ -29,7 +29,6 @@ static void handle_stat(int parc, char *parv[]);
 
 rb_helper *authd_helper = NULL;
 authd_cmd_handler authd_cmd_handlers[256] = {
-<<<<<<< HEAD
        ['C'] = handle_new_connection,
        ['D'] = resolve_dns,
        ['R'] = handle_reload,
@@ -69,7 +68,7 @@ handle_reload(int parc, char *parv[])
        if(parc < 2)
        {
                /* Reload all handlers */
-               for(size_t i = 0; i < sizeof(authd_reload_handlers); handler = authd_reload_handlers[i++])
+               for(size_t i = 0; i < 256; handler = authd_reload_handlers[i++])
                        handler(parv[1][0]);
 
                return;