mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-04-29 11:59:27 +00:00
bug #238-private. OpenBTS segfaults when receving an empty SMS destined to go out as text/plain. It no longer segfaults, but does not successfully send the message.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2969 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
parent
e15178ef3a
commit
8ba4a6a7ae
2 changed files with 7 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ int sqlite3_run_query(sqlite3* DB, sqlite3_stmt *stmt)
|
|||
}
|
||||
}
|
||||
if ((src!=SQLITE_DONE) && (src!=SQLITE_ROW)) {
|
||||
fprintf(stderr,"sqlite3_run_query failed: %s\n",sqlite3_errmsg(DB));
|
||||
fprintf(stderr,"sqlite3_run_query failed: %s: %s\n", sqlite3_sql(stmt), sqlite3_errmsg(DB));
|
||||
}
|
||||
return src;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue