|
@@ -236,9 +236,12 @@ int _impl_reply(const ei_x_buff *msg)
|
|
|
|
|
|
/* must be in call back / event route */
|
|
/* must be in call back / event route */
|
|
|
|
|
|
- if (!enode) {
|
|
|
|
|
|
+ if (csockfd) {
|
|
LM_ERR("not in callback\n");
|
|
LM_ERR("not in callback\n");
|
|
return -1;
|
|
return -1;
|
|
|
|
+ } else if (!enode) {
|
|
|
|
+ LM_ERR("not connected\n");
|
|
|
|
+ return -1;
|
|
}
|
|
}
|
|
/* copy into reply */
|
|
/* copy into reply */
|
|
if (enode->response.buffsz < msg->buffsz) {
|
|
if (enode->response.buffsz < msg->buffsz) {
|