diff options
Diffstat (limited to 'libsecauth_server_hash.c')
-rw-r--r-- | libsecauth_server_hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsecauth_server_hash.c b/libsecauth_server_hash.c index 6f0d4f0..80f9318 100644 --- a/libsecauth_server_hash.c +++ b/libsecauth_server_hash.c @@ -15,7 +15,8 @@ libsecauth_server_hash(const struct libsecauth_spec *spec, const char *inhash, c uint32_t rounds; size_t i = 0; - *resultp = NULL; + if (resultp) + *resultp = NULL; memset(hashbuf, 0, sizeof(hashbuf)); for (i = 0, rounds = spec->server_rounds; rounds--; i ^= 1) { |