21 lines
825 B
Plaintext
21 lines
825 B
Plaintext
$OpenBSD: patch-pptp_ctrl_c,v 1.1 2006/09/22 02:00:50 pvalchev Exp $
|
|
--- pptp_ctrl.c.orig Thu Sep 21 19:03:03 2006
|
|
+++ pptp_ctrl.c Thu Sep 21 19:03:19 2006
|
|
@@ -457,6 +457,7 @@ void pptp_conn_destroy(PPTP_CONN * conn)
|
|
void pptp_fd_set(PPTP_CONN * conn, fd_set * read_set, fd_set * write_set,
|
|
int * max_fd)
|
|
{
|
|
+ int sig_fd;
|
|
assert(conn && conn->call);
|
|
/* Add fd to write_set if there are outstanding writes. */
|
|
if (conn->write_size > 0)
|
|
@@ -465,7 +466,7 @@ void pptp_fd_set(PPTP_CONN * conn, fd_se
|
|
FD_SET(conn->inet_sock, read_set);
|
|
if (*max_fd < conn->inet_sock) *max_fd = conn->inet_sock;
|
|
/* Add signal pipe file descriptor to set */
|
|
- int sig_fd = sigpipe_fd();
|
|
+ sig_fd = sigpipe_fd();
|
|
FD_SET(sig_fd, read_set);
|
|
if (*max_fd < sig_fd) *max_fd = sig_fd;
|
|
}
|