summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Sundell <sundell.software@gmail.com>2011-12-06 14:27:14 +0900
committerJari Sundell <sundell.software@gmail.com>2011-12-06 14:27:14 +0900
commit2f22e10410a120e0a0f26e9cddc385ea8ea3b2b3 (patch)
treeb2e92f0fce02ac9c8c929bcc28b0cd5304d9b23d
parent97b84c61a440c468ebe510dcc83165b149d12ac9 (diff)
downloadnet-dhcp-ruby-2f22e10410a120e0a0f26e9cddc385ea8ea3b2b3.tar.gz
Fixed size of expanded chaddr.
-rw-r--r--lib/net/dhcp/core.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/dhcp/core.rb b/lib/net/dhcp/core.rb
index ab8d38a..bb42e52 100644
--- a/lib/net/dhcp/core.rb
+++ b/lib/net/dhcp/core.rb
@@ -160,7 +160,7 @@ module DHCP
if self.chaddr.size >= 16
out << self.chaddr.pack('C16')
else
- out << (self.chaddr + [0x00]*(19-self.chaddr.size)).pack('C16')
+ out << (self.chaddr + [0x00]*(16-self.chaddr.size)).pack('C16')
end
# sname and file