SHA256
1
0
forked from pool/dhcp
dhcp/dhcp-3.0.5-pool_eof.dif

16 lines
357 B
Plaintext

--- server/confpars.c
+++ server/confpars.c 2007/02/19 12:39:45
@@ -1466,6 +1466,12 @@
done = 1;
break;
+ case END_OF_FILE:
+ parse_warn (cfile, "unexpected end of file");
+ pool_dereference (&pool, MDL);
+ return;
+ break;
+
default:
declaration = parse_statement (cfile, pool -> group,
POOL_DECL,