Skip to content

Commit

Permalink
Small correction.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelmold committed Jan 19, 2024
1 parent 2786a80 commit de7c17e
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -3095,13 +3095,15 @@ update_cert_timestamp ()
g_free (timestamp);
stamp = time(NULL);
}

timestamp[8] = '\0';
g_debug ("%s: parsing: %s", __func__, timestamp);
stamp = parse_feed_timestamp (timestamp);
g_free (timestamp);
if (stamp == 0)
stamp = time(NULL);
else
{
timestamp[8] = '\0';
g_debug ("%s: parsing: %s", __func__, timestamp);
stamp = parse_feed_timestamp (timestamp);
g_free (timestamp);
if (stamp == 0)
stamp = time(NULL);
}
}

g_debug ("%s: setting last_update: %lld", __func__, (long long) stamp);
Expand Down Expand Up @@ -3364,13 +3366,15 @@ update_scap_timestamp ()
g_free (timestamp);
stamp = time(NULL);
}

timestamp[8] = '\0';
g_debug ("%s: parsing: %s", __func__, timestamp);
stamp = parse_feed_timestamp (timestamp);
g_free (timestamp);
if (stamp == 0)
stamp = time(NULL);
else
{
timestamp[8] = '\0';
g_debug ("%s: parsing: %s", __func__, timestamp);
stamp = parse_feed_timestamp (timestamp);
g_free (timestamp);
if (stamp == 0)
stamp = time(NULL);
}
}

g_debug ("%s: setting last_update: %lld", __func__, (long long) stamp);
Expand Down

0 comments on commit de7c17e

Please sign in to comment.