Skip to content

Commit 300bdf9

Browse files
committed
fix: network_set_sqlite_result must set an SQLite error code instead of a libcurl error code
1 parent 1424229 commit 300bdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ int network_set_sqlite_result (sqlite3_context *context, NETWORK_RESULT *result)
248248

249249
case CLOUDSYNC_NETWORK_ERROR:
250250
sqlite3_result_error(context, (result->buffer) ? result->buffer : "Memory error.", -1);
251-
sqlite3_result_error_code(context, (int)result->blen);
251+
sqlite3_result_error_code(context, SQLITE_ERROR);
252252
len = -1;
253253
break;
254254

0 commit comments

Comments
 (0)