mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-18 20:57:56 +00:00
add missing OUT() to sync_send_response exit path if sqllite
statement preparation fails.
This commit is contained in:
parent
84d133438a
commit
104c311b21
@ -397,6 +397,7 @@ static uint64_t max_token=0;
|
|||||||
static void sync_send_response(struct subscriber *dest, int forwards, uint64_t token, int max_count)
|
static void sync_send_response(struct subscriber *dest, int forwards, uint64_t token, int max_count)
|
||||||
{
|
{
|
||||||
IN();
|
IN();
|
||||||
|
|
||||||
if (max_count == 0 || max_count > BARS_PER_RESPONSE)
|
if (max_count == 0 || max_count > BARS_PER_RESPONSE)
|
||||||
max_count = BARS_PER_RESPONSE;
|
max_count = BARS_PER_RESPONSE;
|
||||||
|
|
||||||
@ -422,8 +423,10 @@ static void sync_send_response(struct subscriber *dest, int forwards, uint64_t t
|
|||||||
statement = sqlite_prepare(&retry, "SELECT rowid, bar FROM manifests WHERE rowid <= ? ORDER BY rowid DESC");
|
statement = sqlite_prepare(&retry, "SELECT rowid, bar FROM manifests WHERE rowid <= ? ORDER BY rowid DESC");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!statement)
|
if (!statement) {
|
||||||
|
OUT();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
sqlite3_bind_int64(statement, 1, token);
|
sqlite3_bind_int64(statement, 1, token);
|
||||||
int count=0;
|
int count=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user