Changeset 2369

Show
Ignore:
Timestamp:
01/23/12 13:13:52 (3 years ago)
Author:
peter
Message:

Make pdnssec error uit clearly, instead of segfaulting, when there are no dnssec-capable backends

Files:
1 modified

Legend:

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

    r2324 r2369  
    259259  UeberBackend db("key-only"); 
    260260   
     261  if ( ! db.backends.size() ) 
     262  { 
     263    throw runtime_error("No backends available for DNSSEC key storage"); 
     264  } 
     265 
    261266  ChunkedSigningPipe csp(zone, 1, remote, cores); 
    262267