Remove unused DCC_CNCT_PEND flag and always define DCC_SSL
DCC_CNCT_PEND was only ever set, not tested, so it was pointless. There's no point only defining DCC_SSL when HAVE_SSL is defined: we can't re-use that flag bit anyway, so might as well just define it always. Also fixes a "flags && DCC_WAIT" that should have been "flags & DCC_WAIT". This has no practical effect though I believe, since as far as I can tell DCC_WAIT would always be set at that point anyway.
This commit is contained in:
@@ -97,22 +97,13 @@
|
|||||||
#define DCC_OFFER 0x00040000
|
#define DCC_OFFER 0x00040000
|
||||||
#define DCC_DELETE 0x00080000
|
#define DCC_DELETE 0x00080000
|
||||||
#define DCC_TWOCLIENTS 0x00100000
|
#define DCC_TWOCLIENTS 0x00100000
|
||||||
|
|
||||||
#ifdef NON_BLOCKING_CONNECTS
|
|
||||||
#define DCC_CNCT_PEND 0x00200000
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SSL
|
|
||||||
#define DCC_SSL 0x04000000
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DCC_QUEUE 0x00400000
|
#define DCC_QUEUE 0x00400000
|
||||||
#define DCC_TDCC 0x00800000
|
#define DCC_TDCC 0x00800000
|
||||||
#define DCC_BOTCHAT 0x01000000
|
#define DCC_BOTCHAT 0x01000000
|
||||||
#define DCC_ECHO 0x02000000
|
#define DCC_ECHO 0x02000000
|
||||||
|
#define DCC_SSL 0x04000000
|
||||||
#define DCC_STATES 0xffffff00
|
#define DCC_STATES 0xffffff00
|
||||||
|
|
||||||
|
|
||||||
int check_dcc_list (char *);
|
int check_dcc_list (char *);
|
||||||
int dcc_exempt_save (FILE *);
|
int dcc_exempt_save (FILE *);
|
||||||
|
|
||||||
|
|||||||
@@ -543,9 +543,6 @@ DCC_List *new_i;
|
|||||||
s = &new_i->sock;
|
s = &new_i->sock;
|
||||||
new = (DCC_int *)s->info;
|
new = (DCC_int *)s->info;
|
||||||
|
|
||||||
#ifdef DCC_CNCT_PEND
|
|
||||||
flags |= DCC_CNCT_PEND;
|
|
||||||
#endif
|
|
||||||
new->remport = ntohs(new->remport);
|
new->remport = ntohs(new->remport);
|
||||||
if ((new_s = connect_by_number(inet_ntoa(new->remote), &new->remport, SERVICE_CLIENT, PROTOCOL_TCP, 0)) < 0
|
if ((new_s = connect_by_number(inet_ntoa(new->remote), &new->remport, SERVICE_CLIENT, PROTOCOL_TCP, 0)) < 0
|
||||||
#ifdef HAVE_SSL
|
#ifdef HAVE_SSL
|
||||||
@@ -627,9 +624,6 @@ DCC_List *new_i;
|
|||||||
if (get_int_var(DCC_FORCE_PORT_VAR))
|
if (get_int_var(DCC_FORCE_PORT_VAR))
|
||||||
portnum = get_int_var(DCC_FORCE_PORT_VAR);
|
portnum = get_int_var(DCC_FORCE_PORT_VAR);
|
||||||
|
|
||||||
#ifdef DCC_CNCT_PEND
|
|
||||||
flags |= DCC_CNCT_PEND;
|
|
||||||
#endif
|
|
||||||
flags |= DCC_WAIT;
|
flags |= DCC_WAIT;
|
||||||
if ((s = connect_by_number(NULL, &portnum, SERVICE_SERVER, PROTOCOL_TCP, 1)) < 0)
|
if ((s = connect_by_number(NULL, &portnum, SERVICE_SERVER, PROTOCOL_TCP, 1)) < 0)
|
||||||
{
|
{
|
||||||
@@ -1245,7 +1239,7 @@ UserList *ul = NULL;
|
|||||||
reset_display_target();
|
reset_display_target();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((s->flags && DCC_WAIT))
|
if ((s->flags & DCC_WAIT))
|
||||||
{
|
{
|
||||||
if (Ctype == DCC_CHAT)
|
if (Ctype == DCC_CHAT)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user