Avoid segfault when skey is not set in config
authorSimo Sorce <simo@redhat.com>
Sat, 13 Jun 2015 22:52:53 +0000 (18:52 -0400)
committerSimo Sorce <simo@redhat.com>
Sat, 13 Jun 2015 23:01:35 +0000 (19:01 -0400)
When the skey is generated on the fly, we will get an empty key on the very
first auth attempt. If that uses basic auth then we'll segfault when trying
to compute the hmac as we pass in a NULL key and immediately dereference it.

Signed-off-by: Simo Sorce <simo@redhat.com>

No differences found