diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-01-06 15:33:13 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-01-06 15:33:13 +0000 |
commit | c225acda9a87c9a708b303948146c1b658621b74 (patch) | |
tree | 65267341f0b8bf6db1303466c18206e42928d605 /sbin/dhclient | |
parent | 2218098ba128f7db376daa1f09b8c64aa0553ff1 (diff) |
Make buffer for lease_as_string() 8192 bytes. A pathological lease
string listing all possible option names turns out to be about 6900
characters long.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 4c67602ee1e..4b553293bce 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.201 2013/01/05 20:34:17 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.202 2013/01/06 15:33:12 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -1479,7 +1479,7 @@ rewrite_client_leases(void) char * lease_as_string(struct client_lease *lease) { - static char leasestr[4096]; + static char leasestr[8192]; char *p; size_t sz, rsltsz; int i, rslt; |