Move a potential NULL pointer dereference. Check if 'slave' is NULL before using 'slave->keepalives'. Remove a redundant assignment which is already done in 'h2_slave_destroy'.