projects
/
platform
/
upstream
/
openconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ab49d7
)
remember username
author
David Woodhouse
<David.Woodhouse@intel.com>
Wed, 1 Oct 2008 13:20:26 +0000
(14:20 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Wed, 1 Oct 2008 13:20:26 +0000
(14:20 +0100)
http.c
patch
|
blob
|
history
diff --git
a/http.c
b/http.c
index
9807800
..
bafcb56
100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-280,9
+280,11
@@
int parse_form(struct anyconnect_info *vpninfo, char *form_message, char *form_e
fprintf(stderr, "Invalid inputs\n");
return -EINVAL;
}
+ if (!vpninfo->username)
+ vpninfo->username = strdup(username);
sprintf(body, "group_list=Layer3_ACE&username=%s&password=%s",
- vpninfo->username
?:username
, token);
+ vpninfo->username, token);
return 0;
}