Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
c41a2219
Unverified
Commit
c41a2219
authored
Sep 30, 2019
by
Sergey Lyubka
Committed by
GitHub
Sep 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1020 from nliviu/patch-2
Fix ASAN build for examples/cookie_auth
parents
900c0521
12339bbf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cookie_auth.c
examples/cookie_auth/cookie_auth.c
+2
-2
No files found.
examples/cookie_auth/cookie_auth.c
View file @
c41a2219
...
...
@@ -58,11 +58,11 @@ static int check_pass(const char *user, const char *pass) {
* or NULL if not found.
*/
static
struct
session
*
get_session
(
struct
http_message
*
hm
)
{
struct
mg_str
*
cookie_header
=
mg_get_http_header
(
hm
,
"cookie"
);
if
(
cookie_header
==
NULL
)
goto
clean
;
char
ssid_buf
[
21
];
char
*
ssid
=
ssid_buf
;
struct
session
*
ret
=
NULL
;
struct
mg_str
*
cookie_header
=
mg_get_http_header
(
hm
,
"cookie"
);
if
(
cookie_header
==
NULL
)
goto
clean
;
if
(
!
mg_http_parse_header2
(
cookie_header
,
SESSION_COOKIE_NAME
,
&
ssid
,
sizeof
(
ssid_buf
)))
{
goto
clean
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment