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

ulibc support, fixes "Invalid SOCKS5 Connect message" problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.