From: Ted Lemon Date: Thu, 11 Jan 2001 02:14:51 +0000 (+0000) Subject: fqdn.fqdn starts at the beginning of the fqdn, not at the next token. X-Git-Tag: V3-BETA-2-PATCH-12~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb814f9d98463a524bf11b190212a3f2ea65b7e2;p=thirdparty%2Fdhcp.git fqdn.fqdn starts at the beginning of the fqdn, not at the next token. --- diff --git a/common/options.c b/common/options.c index 7d2ff6708..7c9da78c1 100644 --- a/common/options.c +++ b/common/options.c @@ -3,7 +3,7 @@ DHCP options parsing and reassembly. */ /* - * Copyright (c) 1995-2000 Internet Software Consortium. + * Copyright (c) 1995-2001 Internet Software Consortium. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: options.c,v 1.76 2001/01/09 06:56:11 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: options.c,v 1.77 2001/01/11 02:14:51 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #define DHCP_OPTION_DATA @@ -349,7 +349,7 @@ int fqdn_universe_decode (struct option_state *options, goto bad; /* Also save the whole name. */ if (!save_option_buffer (&fqdn_universe, options, bp, - &bp -> data [5 + i], length - 3, + &bp -> data [5], length - 3, &fqdn_options [FQDN_FQDN], 1)) goto bad; } else {