Fix GitHub issue #22: Crash in (S,G) state when neighbor is lost

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
pidfile(): Update to OpenBSD v1.10, to fix resource leak.

Fixes Coverity Scan CID #60564

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix Coverity CID #71263 and #71269: Uninitialized scalar variables

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Remove very old mroute kernel workaround.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
pimd: Change to use stdint.h instead of type unsafe homegrown variants.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix missing break; in signal handler for SIGALARM.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
pim.c:accept_pim() - Fix missing break; in reception of PIM_GRAFT messages.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
mrt.c:find_route() - Fix possible NULL pointer dereference.

Found thanks to Coverity Scan.  See CID #71260 for details.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
pim_proto.c:send_periodic_pim_join_prune() - Fix possible NULL pointer deref.

Found thanks to Coverity Scan.  See CID #71258 for details.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
rp.c:bootstrap_initial_delay() - Fix bad bit shift operation.

The sizeof(delay) used in the bit shift to get log_mask is
64 on a 64-bit platform, which is not what was intended.

Adjust long and int to uint32_t and int32_t from stdint.h

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
main.c:killshow() - Check result of remove()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
main.c: Minor cleanup and check result of mkdir("/var/run/pimd")

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
config.c:parse_rp_address() - Remove unnecessary sscanf() of dummy value.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>