Fix gratuitous compiler warning.

Reported by:	Rong-en Fan <grafan@gmail.com>
This commit is contained in:
pjd 2006-06-08 17:40:02 +00:00
parent e0f73680ab
commit e9425270e5

View File

@ -523,13 +523,14 @@ padlock_process(void *arg __unused, struct cryptop *crp, int hint __unused)
u_char *buf, *abuf;
int error = 0;
enccrd = maccrd = NULL;
buf = NULL;
if (crp == NULL || crp->crp_callback == NULL || crp->crp_desc == NULL) {
error = EINVAL;
goto out;
}
enccrd = maccrd = NULL;
for (crd = crp->crp_desc; crd != NULL; crd = crd->crd_next) {
switch (crd->crd_alg) {
case CRYPTO_NULL_HMAC: