* fixed malloc corruption in target->debug_reason
[fw/openocd] / src / server / server.c
index 4e8ddc692e6b861f204d43d7680487880e157607..ae13b129d036669554578c6a197b7c98dddbab98 100644 (file)
@@ -71,6 +71,7 @@ int add_connection(service_t *service, command_context_t *cmd_ctx)
                close_socket(c->fd);
                INFO("attempted '%s' connection rejected", service->name);
                free(c);
+               return retval;
        }
        
        /* add to the end of linked list */