Changed register_ip() return code: < 0 error, >=0 ok.