BTW, the following code already exists. so, we just have to move it ?
393     if (ec != 0) {
394         resp_str += "Ip address is not correct, ";
395         err = true;
396     }