diff --git a/src/spicelib/parser/inp2m.c b/src/spicelib/parser/inp2m.c index daf374298..2d5e1fe7b 100644 --- a/src/spicelib/parser/inp2m.c +++ b/src/spicelib/parser/inp2m.c @@ -172,6 +172,9 @@ INP2M(CKTcircuit *ckt, INPtables *tab, card *current) line = save; /* reset the posn to what it sould be */ /* nodeflag == 4 */ + if (!valid_numnodes(nodeflag, thismodel, current)) + return; + model = nname5; } } else { @@ -193,6 +196,9 @@ INP2M(CKTcircuit *ckt, INPtables *tab, card *current) } } else { /* nodeflag == 4 */ + if (!valid_numnodes(nodeflag, thismodel, current)) + return; + model = nname5; }