Commit Diff
- Commit:
c000aa350eac5ac329beb278a513e5f978d2a463
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
- Message:
- gotd: return early after disconnect on auth event error This fixes a segv reported by Mikhail. In this path, any error is already logged, client freed, and event_del() called so we don't need to cleanup in done. ok stsp@
- Actions:
- Patch | Tree
--- gotd/gotd.c +++ gotd/gotd.c @@ -1121,7 +1121,7 @@ gotd_dispatch_auth_child(int fd, short event, void *ar disconnect_on_error(client, err); else disconnect(client); - goto done; + return; } repo = gotd_find_repo_by_name(client->auth->repo_name, &gotd);