Skip to content

Commit

Permalink
Add (unused) cancel_fd to vpninfo struct
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed May 12, 2012
1 parent 984bfe0 commit ddc8e69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions library.c
Expand Up @@ -44,6 +44,7 @@ struct openconnect_info *openconnect_vpninfo_new_with_cbdata (char *useragent,
vpninfo->process_auth_form = process_auth_form;
vpninfo->progress = progress;
vpninfo->cbdata = privdata?:vpninfo;
vpninfo->cancel_fd = -1;

#ifdef ENABLE_NLS
bindtextdomain("openconnect", LOCALEDIR);
Expand Down
1 change: 1 addition & 0 deletions main.c
Expand Up @@ -404,6 +404,7 @@ int main(int argc, char **argv)
vpninfo->cbdata = vpninfo;
vpninfo->cert_expire_warning = 60 * 86400;
vpninfo->vpnc_script = DEFAULT_VPNCSCRIPT;
vpninfo->cancel_fd = -1;

if (!uname(&utsbuf))
vpninfo->localname = utsbuf.nodename;
Expand Down
1 change: 1 addition & 0 deletions openconnect-internal.h
Expand Up @@ -197,6 +197,7 @@ struct openconnect_info {
int ssl_fd;
int dtls_fd;
int new_dtls_fd;
int cancel_fd;

struct pkt *incoming_queue;
struct pkt *outgoing_queue;
Expand Down

0 comments on commit ddc8e69

Please sign in to comment.