1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-01-18 22:52:11 +01:00

pass port correctly

This commit is contained in:
Klas Lindfors 2015-01-19 10:24:13 +01:00
parent bcfee637af
commit 818fe93f3d
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ my %otps = (
);
my $port = shift;
$port |= 8888;
die "no port specified" unless $port;
my $socket = new IO::Socket::INET (
LocalHost => '127.0.0.1',

View File

@ -159,13 +159,13 @@ static int test_fail_authenticate2(void) {
"authfile=aux/authfile",
"debug"
};
return pam_sm_authenticate(4, 0, sizeof(cfg) / sizeof(char*), cfg);
return pam_sm_authenticate(2, 0, sizeof(cfg) / sizeof(char*), cfg);
}
static pid_t run_mock(const char *port) {
pid_t pid = fork();
if(pid == 0) {
execlp("aux/ykval.pl", port, NULL);
execlp("aux/ykval.pl", "aux/ykval.pl", port, NULL);
}
return pid;
}