blob: 51aa84471f35621a73fa7e7f3eb2e3cbf0057b83 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- pptp_ctrl.c.orig Fri Sep 30 21:56:59 2005
+++ pptp_ctrl.c Fri Sep 30 21:57:27 2005
@@ -457,6 +457,8 @@
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 +467,7 @@
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;
}
|