|
Lines 626-631
Link Here
|
| 626 |
int i; |
626 |
int i; |
| 627 |
char state; /* Which state did the connection just enter? */ |
627 |
char state; /* Which state did the connection just enter? */ |
| 628 |
|
628 |
|
|
|
629 |
close(ud->statefd[1]); |
| 630 |
ud->statefd[1] = -1; |
| 631 |
close(ud->challengefd[1]); |
| 632 |
ud->challengefd[1] = -1; |
| 633 |
close(ud->responsefd[0]); |
| 634 |
ud->responsefd[0] = -1; |
| 635 |
|
| 629 |
/* We are the parent - wait for a call to the communications |
636 |
/* We are the parent - wait for a call to the communications |
| 630 |
function to turn up, or the challenge to be finished */ |
637 |
function to turn up, or the challenge to be finished */ |
| 631 |
if (read(ud->statefd[0], &state, 1) != 1) { |
638 |
if (read(ud->statefd[0], &state, 1) != 1) { |
|
Lines 749-754
Link Here
|
| 749 |
int retval; |
756 |
int retval; |
| 750 |
char state; |
757 |
char state; |
| 751 |
|
758 |
|
|
|
759 |
close(ud->statefd[0]); |
| 760 |
ud->statefd[0] = -1; |
| 761 |
close(ud->challengefd[0]); |
| 762 |
ud->challengefd[0] = -1; |
| 763 |
close(ud->responsefd[1]); |
| 764 |
ud->responsefd[1] = -1; |
| 765 |
|
| 752 |
conv.appdata_ptr = ud; |
766 |
conv.appdata_ptr = ud; |
| 753 |
retval = pam_start(service, username, &conv, &pamh); |
767 |
retval = pam_start(service, username, &conv, &pamh); |
| 754 |
/* Is user really user? */ |
768 |
/* Is user really user? */ |