If the request is failed, the cmd of the packet is a negative error value.
Change-Id: If5ef6e9c16719063cc89a5b0d5ab9bc8222d3b42
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
return aul_error_convert(ret);
}
+ if (pkt->cmd != APP_GET_INFO_OK) {
+ _E("Failed to get component info. error(%d)", pkt->cmd);
+ ret = pkt->cmd;
+ free(pkt);
+ return ret;
+ }
+
b = NULL;
if (pkt->opt & AUL_SOCK_BUNDLE) {
b = bundle_decode(pkt->data, pkt->len);
return aul_error_convert(ret);
}
+ if (pkt->cmd != APP_GET_INFO_OK) {
+ _E("Failed to get component info. error(%d)", pkt->cmd);
+ ret = pkt->cmd;
+ free(pkt);
+ return ret;
+ }
+
b = NULL;
if (pkt->opt & AUL_SOCK_BUNDLE) {
b = bundle_decode(pkt->data, pkt->len);