Small fix-up in if_get_cfg

Signed-off-by: Victor Duta <duta.victor.marin@gmail.com>