Module Name: src Committed By: pgoyette Date: Sat Jan 18 19:44:41 UTC 2014
Modified Files: src/tests/crypto/opencrypto: h_md5.c Log Message: Free each crypto(4) session when we're done with it. (A new session is created for each test case.) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/crypto/opencrypto/h_md5.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/crypto/opencrypto/h_md5.c diff -u src/tests/crypto/opencrypto/h_md5.c:1.3 src/tests/crypto/opencrypto/h_md5.c:1.4 --- src/tests/crypto/opencrypto/h_md5.c:1.3 Sat Jan 18 15:55:32 2014 +++ src/tests/crypto/opencrypto/h_md5.c Sat Jan 18 19:44:41 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: h_md5.c,v 1.3 2014/01/18 15:55:32 pgoyette Exp $ */ +/* $NetBSD: h_md5.c,v 1.4 2014/01/18 19:44:41 pgoyette Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -108,6 +108,9 @@ main(void) j, buf[j], tests[i].digest[j]); errx(1, "verification failed test %zu", i); } + res = ioctl(fd, CIOCFSESSION, &cs.ses); + if (res < 0) + err(1, "CIOCFSESSION test %zu", i); } return 0; }