From: Eugene Crosser Date: Fri, 10 Nov 2017 01:27:01 +0000 (+0100) Subject: check that old data exists when it is necessary X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=commitdiff_plain;h=bcd4173e47de642dd5fa70e1d6019d542ecaf76c;hp=f362aa1f9cfeedd86f89cf1cdf7558aa6782ceba check that old data exists when it is necessary --- diff --git a/authobj.c b/authobj.c index deba028..b4a1f2b 100644 --- a/authobj.c +++ b/authobj.c @@ -241,6 +241,10 @@ struct _auth_obj authobj(const char *userid, const char *password, struct _auth_obj new_ao = {0}; if (!secret || !secsize || !payload) { + if (!ablob || !blobsize) { + new_ao.err = "authobj: previous data not supplied"; + return new_ao; + } old_ao = parse_authobj(userid, password, oldnonce, secret, secsize, ablob, blobsize, fetch_key);