diff options
Diffstat (limited to 'crypto/heimdal/lib/krb5/n-fold-test.c')
-rw-r--r-- | crypto/heimdal/lib/krb5/n-fold-test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/heimdal/lib/krb5/n-fold-test.c b/crypto/heimdal/lib/krb5/n-fold-test.c index 7cf4905..248e232 100644 --- a/crypto/heimdal/lib/krb5/n-fold-test.c +++ b/crypto/heimdal/lib/krb5/n-fold-test.c @@ -32,7 +32,7 @@ #include "krb5_locl.h" -RCSID("$Id: n-fold-test.c,v 1.4 2001/03/12 07:42:30 assar Exp $"); +RCSID("$Id: n-fold-test.c 21745 2007-07-31 16:11:25Z lha $"); enum { MAXSIZE = 24 }; @@ -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: "); |