mozilla-services / iprepd

Centralized IP reputation daemon
Mozilla Public License 2.0
60 stars 10 forks source link

dont start serving requests until exceptions have been populated #10

Closed ameihm0912 closed 5 years ago

ameihm0912 commented 5 years ago

This fixes a nil pointer dereference that can occur if a request is made of the API before the exception routine has initialized the radix tree.

Prior to this, heartbeat/lbheartbeat requests would still return success even if the exception tree hadn't been populated, and it would cause the service to crash upon first request that was not a heartbeat.