syslog(LOG_DEBUG, "usetable: CheckIfAlreadySeen(0x%8x)", hash);
cdbut = cdb_fetch(CDB_USETABLE, &hash, sizeof(hash));
- if (cdbut.len > 0) {
+ if (cdbut.ptr != NULL) {
found = 1;
}
ut.hash = hash;
ut.timestamp = time(NULL);
cdb_store(CDB_USETABLE, &hash, sizeof(hash), &ut, sizeof(struct UseTable));
- return (found);
+ return(found);
}