jingle/check.c
changeset 90 b250d32fea87
parent 58 daafe5b8a48d
child 93 4038cce7fd80
equal deleted inserted replaced
89:88bb2d0f9ff8 90:b250d32fea87
    67     g_set_error(err, JINGLE_CHECK_ERROR, JINGLE_CHECK_ERROR_MISSING,
    67     g_set_error(err, JINGLE_CHECK_ERROR, JINGLE_CHECK_ERROR_MISSING,
    68                 "an attribute of the jingle element is missing");
    68                 "an attribute of the jingle element is missing");
    69     return FALSE;
    69     return FALSE;
    70   }
    70   }
    71 
    71 
    72   if (check_jid_syntax(jn->initiator)) {
    72   if (actionstr != NULL && check_jid_syntax(jn->initiator)) {
    73     g_set_error(err, JINGLE_CHECK_ERROR, JINGLE_CHECK_ERROR_BADVALUE,
    73     g_set_error(err, JINGLE_CHECK_ERROR, JINGLE_CHECK_ERROR_BADVALUE,
    74                 "the initiator attribute in invalid (not a jid)");
    74                 "the initiator attribute in invalid (not a jid)");
    75     return FALSE;
    75     return FALSE;
    76   }
    76   }
    77 
    77