When newHashResultCacheEntry() failed the returned nil pointer was assigned to the entry interface. Later entry!=nil would evaluate to true and try to use it. Fix by setting entry to nil when newHashResultCacheEntry() fails.
Another way to fix this would be to change the signature of newHashResultCacheEntry() so it returns HashResultCacheEntry - maybe that was the original intention.
When newHashResultCacheEntry() failed the returned nil pointer was assigned to the entry interface. Later entry!=nil would evaluate to true and try to use it. Fix by setting entry to nil when newHashResultCacheEntry() fails.
Fixes https://github.com/SUSE/linux-security-sensor/issues/85