crashes if it fails to bind to control socket
./src/knotd -c knot/knot.conf
2015-04-30T09:33:19 info: Knot DNS 2.0.0-beta starting
2015-04-30T09:33:19 info: binding to interface '127.0.0.1@6667'
2015-04-30T09:33:19 info: configured 1 zones
2015-04-30T09:33:19 info: loading zones
2015-04-30T09:33:19 info: [example.com] zone will be loaded, serial 0
2015-04-30T09:33:19 info: starting server
2015-04-30T09:33:19 info: [example.com] loaded, serial 0 -> 2010111213
2015-04-30T09:33:19 info: server started in the foreground, PID 89038
2015-04-30T09:33:19 info: remote control, binding to '/usr/local/var/run/knot/knot.sock'
==89038==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7fff55774070 at pc 0x10b25dd42 bp 0x7fff55773f70 sp 0x7fff55773f68
READ of size 4 at 0x7fff55774070 thread T0
#0 0x10b25dd41 (/Users/marek/knot/src/.libs/libknot-int-2.0.dylib+0x3d41)
#1 0x10b2679a0 (/Users/marek/knot/src/.libs/libknot-int-2.0.dylib+0xd9a0)
#2 0x10a48a3b0 (/Users/marek/knot/src/.libs/knotd+0x10000f3b0)
#3 0x10a47be1b (/Users/marek/knot/src/.libs/knotd+0x100000e1b)
#4 0x10a4f2ceb (/Users/marek/knot/src/.libs/knotd+0x100077ceb)
#5 0x7fff8f3e65c8 (/usr/lib/system/libdyld.dylib+0x35c8)
#6 0x2
Symbolized:
#1 knot_map_errno_internal (in libknot-int-1.99.dylib) + 332
#2 net_bound_socket (in libknot-int-1.99.dylib) + 501
#3 remote_bind (in knotd) (remote.c:532)