---
 lib/rpki/querySupport.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/lib/rpki/querySupport.c b/lib/rpki/querySupport.c
index 88b1423..27f6f92 100644
--- a/lib/rpki/querySupport.c
+++ b/lib/rpki/querySupport.c
@@ -88,8 +88,6 @@ int checkValidity(
     scm * scmp,
     scmcon * connect)
 {
-    int status;
-
     // set up main part of query only once, instead of once per object
     if (validTable == NULL)
     {
@@ -97,7 +95,7 @@ int checkValidity(
         validSrch = newsrchscm(NULL, 3, 0, 1);
         QueryField *field = findField("aki");
         addcolsrchscm(validSrch, "aki", field->sqlType, field->maxSize);
-        char *now = LocalTimeToDBTime(&status);
+        char *now = LocalTimeToDBTime(NULL);
         field = findField("issuer");
         addcolsrchscm(validSrch, "issuer", field->sqlType, field->maxSize);
         validWhereStr = validSrch->wherestr;
@@ -181,8 +179,8 @@ int checkValidity(
             strncpy(prevSKI, nextSKI, 128);
         }
         parentsFound = 0;
-        status = searchscm(connect, validTable, validSrch, NULL,
-                           registerParent, SCM_SRCH_DOVALUE_ALWAYS, NULL);
+        searchscm(connect, validTable, validSrch, NULL,
+                  registerParent, SCM_SRCH_DOVALUE_ALWAYS, NULL);
         if (parentsFound > 1)
         {
             LOG(LOG_WARNING, "multiple parents (%d) found; results suspect",
@@ -194,9 +192,8 @@ int checkValidity(
                 return 0;
             xsnprintf(anySrch->wherestr, WHERESTR_SIZE, "%s",
                       whereInsertPtr + 5);
-            status =
-                searchscm(connect, validTable, anySrch, NULL, registerParent,
-                          SCM_SRCH_DOVALUE_ALWAYS, NULL);
+            searchscm(connect, validTable, anySrch, NULL, registerParent,
+                      SCM_SRCH_DOVALUE_ALWAYS, NULL);
             if (parentsFound > 1)
                 LOG(LOG_WARNING, "multiple parents (%d) found; results 
suspect",
                     parentsFound);
-- 
2.4.5


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
rpstir-devel mailing list
rpstir-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpstir-devel

Reply via email to