summaryrefslogtreecommitdiffstats
path: root/osmo-gsup-hlr/src/db_hlr.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-06-10 17:33:38 +0200
committerHarald Welte <laforge@gnumonks.org>2016-06-10 17:33:38 +0200
commitf1b793f203d052e4b9ef05d1a2f1eec996704e48 (patch)
treed5356dd0b54d86c42aae6cf9b375b9ebc1a5612b /osmo-gsup-hlr/src/db_hlr.c
parent09ccb6308ed60893e0f7ab22d2731b76c8cf938b (diff)
fix PURGE_MS sqlite3 access
Diffstat (limited to 'osmo-gsup-hlr/src/db_hlr.c')
-rw-r--r--osmo-gsup-hlr/src/db_hlr.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/osmo-gsup-hlr/src/db_hlr.c b/osmo-gsup-hlr/src/db_hlr.c
index ca44e8e..1b95556 100644
--- a/osmo-gsup-hlr/src/db_hlr.c
+++ b/osmo-gsup-hlr/src/db_hlr.c
@@ -146,15 +146,9 @@ int db_subscr_purge(struct db_context *dbc, const char *imsi, bool is_ps)
else
stmt = dbc->stmt[UPD_PURGE_CS_BY_IMSI];
- rc = sqlite3_bind_int(stmt, 1, 1);
- if (rc != SQLITE_OK) {
- LOGP(DAUC, LOGL_ERROR, "Error binding Purged: %d\n", rc);
- return -1;
- }
-
- rc = sqlite3_bind_text(stmt, 2, imsi, -1, SQLITE_STATIC);
+ rc = sqlite3_bind_text(stmt, 1, imsi, -1, SQLITE_STATIC);
if (rc != SQLITE_OK) {
- LOGP(DAUC, LOGL_ERROR, "Error binding IMSI: %d\n", rc);
+ LOGP(DAUC, LOGL_ERROR, "Error binding IMSI %s: %d\n", imsi, rc);
ret = -1;
goto out;
}