]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/reveng/reveng.c
CHG, modified the configuration script
[proxmark3-svn] / client / reveng / reveng.c
index dd50987c308fd7b47c2ccc503e99289b8897880c..5cda62d16d980ffce36915e8d86c2900d442d9ef 100644 (file)
@@ -141,8 +141,10 @@ reveng(const model_t *guess, const poly_t qpoly, int rflags, int args, const pol
                engini(&resc, &result, guess->spoly, guess->flags, args, argpolys);
 
 requit:
-       if(!(result = realloc(result, ++resc * sizeof(model_t))))
+       if(!(result = realloc(result, ++resc * sizeof(model_t)))) {
                uerror("cannot reallocate result array");
+               return NULL;
+       }
        rptr = result + resc - 1;
        rptr->spoly  = pzero;
        rptr->init   = pzero;
Impressum, Datenschutz