Commit ea7965b5 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Fix for null pointer assignment

Can't zero the t2flags having just set hServer to NULL.

Version 2.49. Tagged as 'LanManFS-2_49'
parent e5ce78dc
/* (2.48)
/* (2.49)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 2.48
#define Module_MajorVersion_CMHG 2.49
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 14 Mar 2015
#define Module_Date_CMHG 05 Jul 2015
#define Module_MajorVersion "2.48"
#define Module_Version 248
#define Module_MajorVersion "2.49"
#define Module_Version 249
#define Module_MinorVersion ""
#define Module_Date "14 Mar 2015"
#define Module_Date "05 Jul 2015"
#define Module_ApplicationDate "14-Mar-15"
#define Module_ApplicationDate "05-Jul-15"
#define Module_ComponentName "LanManFS"
#define Module_ComponentPath "castle/RiscOS/Sources/Networking/Omni/Protocols/LanManFS"
#define Module_FullVersion "2.48"
#define Module_HelpVersion "2.48 (14 Mar 2015)"
#define Module_LibraryVersionInfo "2:48"
#define Module_FullVersion "2.49"
#define Module_HelpVersion "2.49 (05 Jul 2015)"
#define Module_LibraryVersionInfo "2:49"
......@@ -1209,6 +1209,9 @@ static hSERVER AllocServer ( void )
hS->flags = ALLOCATED;
hS->hSession = 0;
hS->blob = 0;
#ifdef LONGNAMES
hS->t2flags = 0;
#endif
return hS;
}
......@@ -1229,9 +1232,6 @@ static hSHARE AllocShare ( void )
hS->hServer = NULL;
hS->Tid=0;
hS->Datasize=0;
#ifdef LONGNAMES
hS->hServer->t2flags = 0;
#endif
return hS;
}
......
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