From 62ab0da953572b095e5bb58855bfa66561d1413d Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 2 Mar 2010 17:22:22 +0000 Subject: [PATCH] [packages] srelay: add a patch to fix auth accepting any passwords (closes: #6781) git-svn-id: svn://svn.openwrt.org/openwrt/packages@19954 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/srelay/Makefile | 4 ++-- .../patches/005-fix_auth_accept_any_password.patch | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 net/srelay/patches/005-fix_auth_accept_any_password.patch diff --git a/net/srelay/Makefile b/net/srelay/Makefile index b33290d7a..5b6d41cb6 100644 --- a/net/srelay/Makefile +++ b/net/srelay/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2008 OpenWrt.org +# Copyright (C) 2006-2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=srelay PKG_VERSION:=0.4.6 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/socks-relay diff --git a/net/srelay/patches/005-fix_auth_accept_any_password.patch b/net/srelay/patches/005-fix_auth_accept_any_password.patch new file mode 100644 index 000000000..5be337653 --- /dev/null +++ b/net/srelay/patches/005-fix_auth_accept_any_password.patch @@ -0,0 +1,17 @@ +Without this patch, authentication will accept any password! + +--- a/auth-pwd.c ++++ b/auth-pwd.c +@@ -251,12 +251,9 @@ int checkpasswd(char *user, char *pass) + memset(spwd->sp_pwdp, 0, strlen(spwd->sp_pwdp)); + #endif + +-#if defined(FREEBSD) || defined(SOLARIS) + if (matched) { + return(0); + } else { + return(-1); + } +-#endif +- return(0); + } -- 2.11.0