Changeset 4358b10 for protocols/jabber


Ignore:
Timestamp:
2008-05-04T13:32:15Z (17 years ago)
Author:
ulim <a.sporto+bee@…>
Branches:
master
Children:
29c1456
Parents:
0cab388
Message:

ulibc support, fixes "Invalid SOCKS5 Connect message" problem

Location:
protocols/jabber
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    r0cab388 r4358b10  
    612612        {
    613613                /* Who cares about the unknown... */
    614                 imcb_log( ic, "Couldnt find the man: %s", bare_jid);
     614                imcb_log( ic, "Couldn't find buddy: %s", bare_jid);
    615615                return 0;
    616616        }
     
    626626                imcb_log( ic, "WARNING: Couldn't generate feature query" );
    627627                xt_free_node( node );
     628                return 0;
    628629        }
    629630
     
    648649        {
    649650                /* Who cares about the unknown... */
    650                 imcb_log( ic, "Couldnt find the man: %s", xt_find_attr( node, "from"));
     651                imcb_log( ic, "Couldn't find buddy: %s", xt_find_attr( node, "from"));
    651652                return 0;
    652653        }
  • protocols/jabber/s5bytestream.c

    r0cab388 r4358b10  
    2626#include <poll.h>
    2727
     28/* Some ifdefs for ulibc (Thanks to Whoopie) */
     29#ifndef HOST_NAME_MAX
     30#include <sys/param.h>
     31#ifdef MAXHOSTNAMELEN
     32#define HOST_NAME_MAX MAXHOSTNAMELEN
     33#else
     34#define HOST_NAME_MAX 255
     35#endif
     36#endif
     37
    2838struct bs_transfer {
    2939
     
    10481058                        struct socks5_message socks5_connect;
    10491059                        int msgsize = sizeof( struct socks5_message );
    1050 
    1051                         if( !jabber_bs_peek( bt, &socks5_connect, msgsize ) )
     1060                        int ret;
     1061
     1062                        if( !( ret = jabber_bs_peek( bt, &socks5_connect, msgsize ) ) )
    10521063                                return FALSE;
     1064
     1065                        if( ret < msgsize )
     1066                                return TRUE;
    10531067
    10541068                        if( !( socks5_connect.ver == 5) ||
Note: See TracChangeset for help on using the changeset viewer.