mirror of
https://github.com/mirror/wget.git
synced 2024-12-28 22:00:27 +08:00
Fix potential memory leak and libpsl configure
This commit is contained in:
parent
e43ae39dff
commit
a44841cbe2
@ -1,3 +1,7 @@
|
||||
2014-07-21 Darshit Shah <darnir@gmail.com>
|
||||
|
||||
* configure.ac: Fix check for Libpsl
|
||||
|
||||
2014-06-28 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||
|
||||
* cfg.mk (local-checks-to-skip): Remove some checks.
|
||||
|
16
configure.ac
16
configure.ac
@ -63,7 +63,14 @@ dnl
|
||||
|
||||
AC_ARG_WITH(libpsl,
|
||||
AS_HELP_STRING([--without-libpsl],
|
||||
[disable support for libpsl cookie checking.]))
|
||||
[disable support for libpsl cookie checking.]),
|
||||
[],
|
||||
[AC_SEARCH_LIBS(psl_builtin, psl,
|
||||
[AC_DEFINE([WITH_LIBPSL], [1], [PSL Support Enabled])],
|
||||
[AC_MSG_WARN(*** libpsl not found. Falling back to tail matching)])
|
||||
])
|
||||
AS_IF([test x$ac_cv_search_psl_builtin != "x-psl"], [ENABLE_PSL=no],
|
||||
[ENABLE_PSL=yes])
|
||||
|
||||
AC_ARG_WITH(ssl,
|
||||
[[ --without-ssl disable SSL autodetection
|
||||
@ -238,11 +245,6 @@ dnl
|
||||
dnl Checks for libraries.
|
||||
dnl
|
||||
|
||||
AS_IF([test x"$with_libpsl" != xno], [
|
||||
with_libpsl=yes
|
||||
AC_CHECK_LIB([psl], [psl_builtin])
|
||||
])
|
||||
|
||||
AS_IF([test x"$with_zlib" != xno], [
|
||||
with_zlib=yes
|
||||
AC_CHECK_LIB(z, compress)
|
||||
@ -593,7 +595,7 @@ AC_MSG_NOTICE([Summary of build options:
|
||||
Libs: $LIBS
|
||||
SSL: $with_ssl
|
||||
Zlib: $with_zlib
|
||||
PSL: $with_libpsl
|
||||
PSL: $ENABLE_PSL
|
||||
Digest: $ENABLE_DIGEST
|
||||
NTLM: $ENABLE_NTLM
|
||||
OPIE: $ENABLE_OPIE
|
||||
|
@ -1,3 +1,8 @@
|
||||
2014-07-21 Darshit Shah <darnir@gmail.com>
|
||||
|
||||
* cookies.c (check_domain_match): Fix a potential memory leak when checking
|
||||
cookie domain names
|
||||
|
||||
2014-07-07 Tomas Hozza <thozza@redhat.com>
|
||||
|
||||
* iri.c (locale_to_utf8): Fix checking of iconv_open return code.
|
||||
|
@ -546,9 +546,12 @@ check_domain_match (const char *cookie_domain, const char *host)
|
||||
xfree (cookie_domain_lower);
|
||||
xfree (host_lower);
|
||||
|
||||
return true ? (is_acceptable == 1) : false;
|
||||
return is_acceptable == 1;
|
||||
|
||||
no_psl:
|
||||
/* Cleanup the PSL pointers first */
|
||||
xfree (cookie_domain_lower);
|
||||
xfree (host_lower);
|
||||
#endif
|
||||
|
||||
/* For efficiency make some elementary checks first */
|
||||
|
Loading…
Reference in New Issue
Block a user