interface-ip.c: fix possible null pointer access if calloc() fails