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:
parent
bcfee637af
commit
818fe93f3d
@ -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',
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user