Changeset 2323

Show
Ignore:
Timestamp:
12/23/11 10:50:40 (17 months ago)
Author:
peter
Message:

Don't crash when reload-acls encounters garbage. Fixes #330

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/rec_channel_rec.cc

    r1997 r2323  
    590590    catch(std::exception& e)  
    591591    { 
     592      L<<Logger::Error<<"reloading ACLs failed (Exception: "<<e.what()<<")"<<endl; 
    592593      return e.what() + string("\n"); 
    593594    } 
     595    catch(AhuException& ae) 
     596    { 
     597      L<<Logger::Error<<"reloading ACLs failed (AhuException: "<<ae.reason<<")"<<endl; 
     598      return ae.reason + string("\n"); 
     599    } 
    594600    return "ok\n"; 
    595601  }