notification_wait_response uses uninitialized msg_buffer which
causes unexpected behaviour in subsequent calls to this function.
Problem occurs when timeout happens. In such case message_buffer
is not filled by read function and contains random data, mostly data
received in previous call to the function.
Change-Id: Ibce7e63b212d30022da277ba62cbb789df2503fd
struct timeval timeout_tv;
char *resp;
- /* a response packet *must* have an execute option TYPE_RESPONDING
+ memset(msg_buffer, 0, sizeof(msg_buffer));
+
+ /* a response packet *must* have an execute option TYPE_RESPONDING
with an associated bundle.
If its bundle does not already contain a "tid" hint (which
complex applications such as xwalk may overwrite), we will