[ruby-cvs:64491] nobu:r57325 (trunk): Made #decode_rdata client to catch errors

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Jan 14 11:26:48 JST 2017

nobu	2017-01-14 11:26:48 +0900 (Sat, 14 Jan 2017)

  New Revision: 57325


    Made #decode_rdata client to catch errors
    * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#get_rr):
      re-raise an exception from decode_rdata as DecodeError, so it
      can report them to the top in more informative way.  It was not
      reflecting on errors of data and thus breaking.  Client code
      expects `DecodeError` and knows how to handle broken messages.
      [Fix GH-1511]

  Modified files:

More information about the ruby-cvs mailing list