cjdns: Fix dangling pointer bug (#964)