X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/24aa0a57333c3467d141195b4e77167839bacadb..e57c8b2e5601aacd3655a7c1a5c47a7cab66d914:/client/cmdlfpresco.c diff --git a/client/cmdlfpresco.c b/client/cmdlfpresco.c index 8ac3a71e..4fdf1be5 100644 --- a/client/cmdlfpresco.c +++ b/client/cmdlfpresco.c @@ -91,7 +91,7 @@ int GetWiegandFromPresco(const char *Cmd, uint32_t *sitecode, uint32_t *usercode if(cmdp == 0) errors = 1; //Validations - if(errors) return -1; + if(errors || stringlen == 0) return -1; if (!hex) { for (int index =0; index < strlen(id); ++index) {