Finished project self-review changes.
This commit is contained in:
parent
8ade751650
commit
245d0fe0bf
@ -179,13 +179,17 @@ ValidateAuthToken(
|
|||||||
IdenTokenUninit();
|
IdenTokenUninit();
|
||||||
PrincipalIfUninit();
|
PrincipalIfUninit();
|
||||||
ConfigIfUninit();
|
ConfigIfUninit();
|
||||||
|
|
||||||
|
retStatus = CasaStatusBuild(CASA_SEVERITY_ERROR,
|
||||||
|
CASA_FACILITY_AUTHTOKEN,
|
||||||
|
CASA_STATUS_UNSUCCESSFUL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((g_ipcInitPtr)("CASA_AuthTokenValidate",
|
if ((g_ipcInitPtr)("CASA_AuthTokenValidate",
|
||||||
g_multiThreadedApplication,
|
g_multiThreadedApplication,
|
||||||
DebugLevel,
|
DebugLevel,
|
||||||
false) == 0)
|
true) == 0)
|
||||||
{
|
{
|
||||||
// Open endpoint for the Authentication Token Validation Service
|
// Open endpoint for the Authentication Token Validation Service
|
||||||
//if ((g_ipcOpenEndPointPtr)(5000,
|
//if ((g_ipcOpenEndPointPtr)(5000,
|
||||||
@ -206,6 +210,10 @@ ValidateAuthToken(
|
|||||||
IdenTokenUninit();
|
IdenTokenUninit();
|
||||||
PrincipalIfUninit();
|
PrincipalIfUninit();
|
||||||
ConfigIfUninit();
|
ConfigIfUninit();
|
||||||
|
|
||||||
|
retStatus = CasaStatusBuild(CASA_SEVERITY_ERROR,
|
||||||
|
CASA_FACILITY_AUTHTOKEN,
|
||||||
|
CASA_STATUS_UNSUCCESSFUL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -215,6 +223,10 @@ ValidateAuthToken(
|
|||||||
IdenTokenUninit();
|
IdenTokenUninit();
|
||||||
PrincipalIfUninit();
|
PrincipalIfUninit();
|
||||||
ConfigIfUninit();
|
ConfigIfUninit();
|
||||||
|
|
||||||
|
retStatus = CasaStatusBuild(CASA_SEVERITY_ERROR,
|
||||||
|
CASA_FACILITY_AUTHTOKEN,
|
||||||
|
CASA_STATUS_UNSUCCESSFUL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 8 15:20:11 MST 2006 - jluciani@novell.com
|
||||||
|
|
||||||
|
- Made changes resulting from self-code review of the project.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 4 15:15:44 MST 2006 - jluciani@novell.com
|
Mon Dec 4 15:15:44 MST 2006 - jluciani@novell.com
|
||||||
|
|
||||||
|
@ -625,7 +625,7 @@ CChannel::connectionThread(
|
|||||||
// Free SmartCChannel
|
// Free SmartCChannel
|
||||||
delete pSmartCChannel;
|
delete pSmartCChannel;
|
||||||
|
|
||||||
DbgTrace(0, "CChannel::connectionThread- End\n", 0);
|
DbgTrace(1, "CChannel::connectionThread- End\n", 0);
|
||||||
|
|
||||||
// Exit
|
// Exit
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
|
@ -81,7 +81,7 @@ RemoteEndPoint::RemoteEndPoint(
|
|||||||
DbgTrace(1, "RemoteEndPoint::RemoteEndPoint- Start, Obj = %0X\n", this);
|
DbgTrace(1, "RemoteEndPoint::RemoteEndPoint- Start, Obj = %0X\n", this);
|
||||||
|
|
||||||
// Verify that the specified path is not too long
|
// Verify that the specified path is not too long
|
||||||
if (strlen(pSocketFileName) < sizeof(sizeof(m_serverUnAddr.sun_path)))
|
if (strlen(pSocketFileName) < sizeof(m_serverUnAddr.sun_path))
|
||||||
{
|
{
|
||||||
// Initialize our mutex
|
// Initialize our mutex
|
||||||
pthread_mutex_init(&m_mutex, NULL);
|
pthread_mutex_init(&m_mutex, NULL);
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
//===[ Include files ]=====================================================
|
//===[ Include files ]=====================================================
|
||||||
|
|
||||||
|
#define __STDC_LIMIT_MACROS
|
||||||
#include "ipcint.h"
|
#include "ipcint.h"
|
||||||
|
|
||||||
//===[ External data ]=====================================================
|
//===[ External data ]=====================================================
|
||||||
|
@ -437,7 +437,7 @@ BindSocket(int socketToBind)
|
|||||||
unlink(listenSocketFile);
|
unlink(listenSocketFile);
|
||||||
|
|
||||||
// Verify that the specified path is not too long
|
// Verify that the specified path is not too long
|
||||||
if (strlen(listenSocketFile) < sizeof(sizeof(listenAddr.sun_path)))
|
if (strlen(listenSocketFile) < sizeof(listenAddr.sun_path))
|
||||||
{
|
{
|
||||||
// Setup the address that the daemon will use to listen
|
// Setup the address that the daemon will use to listen
|
||||||
// for connections.
|
// for connections.
|
||||||
|
Loading…
Reference in New Issue
Block a user