summaryrefslogtreecommitdiffstats
path: root/osmo-gsup-hlr/src/db_hlr.c
diff options
context:
space:
mode:
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;
}