X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/b817bfc642225b8c3c0b6a7e42d1fb949b61a606..42ca150ce7fa024a8fd6a4c9433b613175270eb4:/group-parse.c diff --git a/group-parse.c b/group-parse.c index 1c0d614..7711952 100644 --- a/group-parse.c +++ b/group-parse.c @@ -7,7 +7,7 @@ * (c) 2004 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of Trivial IP Encryption (TrIPE). * @@ -15,12 +15,12 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * TrIPE is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with TrIPE; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -53,7 +53,7 @@ group *group_parse(qd_parse *qd) case 0: { dh_param dp; qd_delim(qd, '{'); - if (dh_parse(qd, &dp)) break; + if (dh_parse(qd, &dp)) goto ouch; qd_delim(qd, '}'); g = group_prime(&dp); dh_paramfree(&dp); @@ -61,12 +61,13 @@ group *group_parse(qd_parse *qd) case 1: { ec_info ei; qd_delim(qd, '{'); - if (ec_infoparse(qd, &ei)) break; + if (ec_infoparse(qd, &ei)) goto ouch; qd_delim(qd, '}'); g = group_ec(&ei); } break; } if (!g) qd->e = "bad group parameters"; +ouch: return (g); }