Commit b531955c authored by Rafaël Carré's avatar Rafaël Carré

smb: Fix stack smashing

It is described on http://shinnai.altervista.org/exploits/SH-008-20101026.html
Thanks to geal for helping finding the problem
parent 2558586a
...@@ -362,7 +362,7 @@ static void Win32AddConnection( access_t *p_access, char *psz_path, ...@@ -362,7 +362,7 @@ static void Win32AddConnection( access_t *p_access, char *psz_path,
char *psz_user, char *psz_pwd, char *psz_user, char *psz_pwd,
char *psz_domain ) char *psz_domain )
{ {
DWORD (*OurWNetAddConnection2)( LPNETRESOURCE, LPCTSTR, LPCTSTR, DWORD ); DWORD WINAPI (*OurWNetAddConnection2)( LPNETRESOURCE, LPCTSTR, LPCTSTR, DWORD );
char psz_remote[MAX_PATH], psz_server[MAX_PATH], psz_share[MAX_PATH]; char psz_remote[MAX_PATH], psz_server[MAX_PATH], psz_share[MAX_PATH];
NETRESOURCE net_resource; NETRESOURCE net_resource;
DWORD i_result; DWORD i_result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment