lib/rubydns/message.rb in rubydns-0.5.2 vs lib/rubydns/message.rb in rubydns-0.5.3
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
+# Copyright, 2009, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -33,8 +33,9 @@
def self.decode_message(data)
if data.respond_to? :force_encoding
data.force_encoding("BINARY")
end
+ # This may throw Resolv::DNS::DecodeError.
Message.decode(data)
end
end
\ No newline at end of file