]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/firebird/firebird_store_users.cpp
Check that IP is not in use before changing.
[stg.git] / projects / stargazer / plugins / store / firebird / firebird_store_users.cpp
index 8b21907e76c1d58e52824b653b3877099530b3c4..e48fd0d89dacb6effa5d245996b4480d9ad7265e 100644 (file)
@@ -337,7 +337,7 @@ try
     st->Execute();
 
     st->Prepare("insert into tb_allowed_ip (fk_user, ip, mask) values (?, ?, ?)");
-    for(i = 0; i < conf.ips.Count(); i++)
+    for(size_t i = 0; i < conf.ips.Count(); i++)
         {
         st->Set(1, uid);
         st->Set(2, (int32_t)conf.ips[i].ip);