diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-05-31 21:35:47 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-05-31 21:35:47 +0000 |
commit | 52777f9ec0267314428ebb326163b970cbbc56fe (patch) | |
tree | 04af531c2172c0babf9aefbbd62c809bb2dd6678 /regress/usr.sbin/rpki-client | |
parent | 5d5a9efeea5205f48af9f5802080962378e94b3a (diff) |
Make sure we error on parse failure.
ok claudio
Diffstat (limited to 'regress/usr.sbin/rpki-client')
-rw-r--r-- | regress/usr.sbin/rpki-client/test-gbr.c | 4 | ||||
-rw-r--r-- | regress/usr.sbin/rpki-client/test-mft.c | 4 | ||||
-rw-r--r-- | regress/usr.sbin/rpki-client/test-roa.c | 4 | ||||
-rw-r--r-- | regress/usr.sbin/rpki-client/test-rsc.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/regress/usr.sbin/rpki-client/test-gbr.c b/regress/usr.sbin/rpki-client/test-gbr.c index f23a168eaa7..167b9713249 100644 --- a/regress/usr.sbin/rpki-client/test-gbr.c +++ b/regress/usr.sbin/rpki-client/test-gbr.c @@ -1,4 +1,4 @@ -/* $Id: test-gbr.c,v 1.8 2022/05/31 19:37:02 tb Exp $ */ +/* $Id: test-gbr.c,v 1.9 2022/05/31 21:35:46 tb Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -75,7 +75,7 @@ main(int argc, char *argv[]) buf = load_file(argv[i], &len); if ((p = gbr_parse(&xp, argv[i], buf, len)) == NULL) { free(buf); - continue; + break; } if (verb) gbr_print(xp, p); diff --git a/regress/usr.sbin/rpki-client/test-mft.c b/regress/usr.sbin/rpki-client/test-mft.c index a89e38556cb..5c17ad90fc8 100644 --- a/regress/usr.sbin/rpki-client/test-mft.c +++ b/regress/usr.sbin/rpki-client/test-mft.c @@ -1,4 +1,4 @@ -/* $Id: test-mft.c,v 1.19 2022/04/20 17:26:53 tb Exp $ */ +/* $Id: test-mft.c,v 1.20 2022/05/31 21:35:46 tb Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -77,7 +77,7 @@ main(int argc, char *argv[]) buf = load_file(argv[i], &len); if ((p = mft_parse(&xp, argv[i], buf, len)) == NULL) { free(buf); - continue; + break; } if (verb) mft_print(xp, p); diff --git a/regress/usr.sbin/rpki-client/test-roa.c b/regress/usr.sbin/rpki-client/test-roa.c index 7facb0c3821..e314cea9a91 100644 --- a/regress/usr.sbin/rpki-client/test-roa.c +++ b/regress/usr.sbin/rpki-client/test-roa.c @@ -1,4 +1,4 @@ -/* $Id: test-roa.c,v 1.16 2022/04/20 17:26:53 tb Exp $ */ +/* $Id: test-roa.c,v 1.17 2022/05/31 21:35:46 tb Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -74,7 +74,7 @@ main(int argc, char *argv[]) buf = load_file(argv[i], &len); if ((p = roa_parse(&xp, argv[i], buf, len)) == NULL) { free(buf); - continue; + break; } if (verb) roa_print(xp, p); diff --git a/regress/usr.sbin/rpki-client/test-rsc.c b/regress/usr.sbin/rpki-client/test-rsc.c index 5106ef3625b..5876e214392 100644 --- a/regress/usr.sbin/rpki-client/test-rsc.c +++ b/regress/usr.sbin/rpki-client/test-rsc.c @@ -1,4 +1,4 @@ -/* $Id: test-rsc.c,v 1.1 2022/05/09 17:20:25 job Exp $ */ +/* $Id: test-rsc.c,v 1.2 2022/05/31 21:35:46 tb Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -77,7 +77,7 @@ main(int argc, char *argv[]) buf = load_file(argv[i], &len); if ((p = rsc_parse(&xp, argv[i], buf, len)) == NULL) { free(buf); - continue; + break; } if (verb) rsc_print(xp, p); |