CI fx workflow 33 and some lint warnings
Some checks failed
Debian build / build (push) Failing after 2m57s
Some checks failed
Debian build / build (push) Failing after 2m57s
This commit is contained in:
parent
3c60f8de01
commit
1f7d70b755
@ -523,20 +523,21 @@ case 3: // send password on outgoing or pw confirmation on incoming
|
||||
|
||||
|
||||
case 4:
|
||||
char *p;
|
||||
|
||||
char pbuf[32];
|
||||
int pwset = 0;
|
||||
|
||||
if (bstate->mode==bmode_incoming_handshake) {
|
||||
char * p;
|
||||
DEB((D_24554, "incoming handshake is complete"));
|
||||
bstate->complete = true;
|
||||
|
||||
for (i=0;i<state.n_remoteaddr;i++)
|
||||
if( !session_get_password(state.remoteaddrs[i].addr, pbuf, sizeof(pbuf)) ){
|
||||
pwset = 1;
|
||||
init_keys(bstate->remote_data->keys_in, pbuf?pbuf:"-");
|
||||
init_keys(bstate->remote_data->keys_in, pbuf[0]?pbuf:"-");
|
||||
init_keys(bstate->remote_data->keys_out, "-");
|
||||
for (p=pbuf?pbuf:"-"; *p; p++)
|
||||
for (p=pbuf[0]?pbuf:"-"; *p; p++)
|
||||
update_keys(bstate->remote_data->keys_out, (int)*p);
|
||||
}
|
||||
//TODO: FIX incoming options
|
||||
@ -954,10 +955,10 @@ got_skip:
|
||||
|
||||
check_that_all_files_are_confirmed:
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < bstate->pi->n_sentfiles; i++) {
|
||||
int j;
|
||||
for (j = 0; j < bstate->pi->n_sentfiles; j++) {
|
||||
if (bstate->pi->sentfiles[i].status == FSTAT_WAITACK) {
|
||||
DEB((D_24554, "sent file %d waits for acknowlede", i));
|
||||
DEB((D_24554, "sent file %d waits for acknowlede", j));
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@ -1156,7 +1157,7 @@ default:
|
||||
|
||||
void binkp_process_NUL(s_binkp_sysinfo *remote_data, char *buffer)
|
||||
{
|
||||
char *p, *q;
|
||||
|
||||
|
||||
if( strncmp(buffer, "SYS ", 4) == 0 )
|
||||
strnxcpy(remote_data->systname, buffer+4, sizeof(remote_data->systname));
|
||||
@ -1184,9 +1185,11 @@ void binkp_process_NUL(s_binkp_sysinfo *remote_data, char *buffer)
|
||||
}
|
||||
else if( strncmp(buffer, "VER ", 4) == 0 )
|
||||
{
|
||||
char *p;
|
||||
/* <mailer> [<protocol>/<vermaj>.<vermin>] */
|
||||
if( (p = strchr(buffer+4, ' ')) )
|
||||
{
|
||||
char *q;
|
||||
strnxcpy(remote_data->progname, buffer+4,
|
||||
MIN(sizeof(remote_data->progname), p - (buffer+4) + 1));
|
||||
++p;
|
||||
|
@ -264,7 +264,7 @@ int session_check_addr(s_faddr addr)
|
||||
int session_get_password(s_faddr addr, char *buffer, size_t buflen)
|
||||
{
|
||||
s_cval_entry *pwd_ptr;
|
||||
|
||||
buffer[0]='\0';
|
||||
for( pwd_ptr = conf_first(cf_password); pwd_ptr;
|
||||
pwd_ptr = conf_next(pwd_ptr) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user