Fix panic in IP redirect. Panic was introduced in r293466.
Found by: Yamagi Burmeister <lists at yamagi.org>>