Skip to content

Commit

Permalink
gateway: Don't crash a server due to misbehaving client.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Borderé committed Feb 5, 2024
1 parent 308d633 commit 75de6d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gateway.c
Original file line number Diff line number Diff line change
Expand Up @@ -1407,9 +1407,8 @@ int gateway__handle(struct gateway *g,
}

/* Receiving a request when one is ongoing on the same connection
* is a hard error. The connection will be stopped due to the non-0
* return code in case asserts are off. */
assert(false);
* is an error, unless it's an interrupt request. The connection will be
* stopped due to the non-0 return value. */
return SQLITE_BUSY;

handle:
Expand Down

0 comments on commit 75de6d3

Please sign in to comment.