check return value of alloc functions, from Charles Longeau
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21745 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -102,7 +102,9 @@ main(int argc, char **argv)
|
||||
for (t = tests; t->str; ++t) {
|
||||
int i;
|
||||
|
||||
_krb5_n_fold (t->str, strlen(t->str), data, t->n);
|
||||
ret = _krb5_n_fold (t->str, strlen(t->str), data, t->n);
|
||||
if (ret)
|
||||
errx(1, "out of memory");
|
||||
if (memcmp (data, t->res, t->n) != 0) {
|
||||
printf ("n-fold(\"%s\", %d) failed\n", t->str, t->n);
|
||||
printf ("should be: ");
|
||||
|
Reference in New Issue
Block a user