Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate check_http_status from gpst.c and ppp.c
This function checks a buffer for an unexpected HTTP status line ("HTTP/xxx nnn ...") and returns the numeric status value (nnn) if found. Also fixes a crash when GP config request ("/ssl-vpn/getconfig.esp") returns no body at all. Signed-off-by: Daniel Lenski <dlenski@gmail.com>
- Loading branch information
Showing
3 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters