libpurple/protocols/simple/simple.c

branch
next.minor
changeset 24990
e2fdc2cd23a4
parent 24981
ceddb7033bc8
parent 24758
26c1c4bc47c0
child 25018
15b8100d277d
equal deleted inserted replaced
24989:81e2345f35f3 24990:e2fdc2cd23a4
1637 time_t currtime = time(NULL); 1637 time_t currtime = time(NULL);
1638 cur += 2; 1638 cur += 2;
1639 cur[0] = '\0'; 1639 cur[0] = '\0';
1640 purple_debug_info("simple", "\n\nreceived - %s\n######\n%s\n#######\n\n", ctime(&currtime), conn->inbuf); 1640 purple_debug_info("simple", "\n\nreceived - %s\n######\n%s\n#######\n\n", ctime(&currtime), conn->inbuf);
1641 msg = sipmsg_parse_header(conn->inbuf); 1641 msg = sipmsg_parse_header(conn->inbuf);
1642
1643 if(!msg) {
1644 /* Should we re-use this error message (from lower in the function)? */
1645 purple_debug_misc("simple", "received a incomplete sip msg: %s\n", conn->inbuf);
1646 return;
1647 }
1648
1642 cur[0] = '\r'; 1649 cur[0] = '\r';
1643 cur += 2; 1650 cur += 2;
1644 restlen = conn->inbufused - (cur - conn->inbuf); 1651 restlen = conn->inbufused - (cur - conn->inbuf);
1645 if(restlen >= msg->bodylen) { 1652 if(restlen >= msg->bodylen) {
1646 dummy = g_malloc(msg->bodylen + 1); 1653 dummy = g_malloc(msg->bodylen + 1);

mercurial