aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussel Santillanes <Russel.Santillanes@gs.com>2013-12-06 10:33:37 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2013-12-06 10:35:10 -0800
commit60dabb5b1d6db01b93729a12d719a0f5afa69468 (patch)
treed1a8398929aaf0d66462c672f59dbc6034cb65cf
parentef81a3ad54845ffb5ad62714cd62db4740ad5cff (diff)
downloadhdt-60dabb5b1d6db01b93729a12d719a0f5afa69468.tar.gz
hdt-60dabb5b1d6db01b93729a12d719a0f5afa69468.tar.xz
hdt-60dabb5b1d6db01b93729a12d719a0f5afa69468.zip
pxe: Make the SENDCOOKIES feature for HTTP worked again
Code refactoring had caused the http_bake_cookies() function to become inaccessible and the SendCookies variable to be duplicated, causing the sendcookies feature to not work. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--com32/include/syslinux/pxe_api.h2
-rw-r--r--core/fs/pxe/http.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/com32/include/syslinux/pxe_api.h b/com32/include/syslinux/pxe_api.h
index e9baa48c..f8c3c106 100644
--- a/com32/include/syslinux/pxe_api.h
+++ b/com32/include/syslinux/pxe_api.h
@@ -589,7 +589,7 @@ int __weak pxe_call(int, void *);
void __weak unload_pxe(uint16_t flags);
uint32_t __weak dns_resolv(const char *);
-uint32_t __weak SendCookies;
+extern uint32_t SendCookies;
void __weak http_bake_cookies(void);
#endif /* _SYSLINUX_PXE_API_H */
diff --git a/core/fs/pxe/http.c b/core/fs/pxe/http.c
index 57223728..0768c10e 100644
--- a/core/fs/pxe/http.c
+++ b/core/fs/pxe/http.c
@@ -121,7 +121,7 @@ static size_t http_do_bake_cookies(char *q)
return n;
}
-void http_bake_cookies(void)
+__export void http_bake_cookies(void)
{
if (cookie_buf)
free(cookie_buf);