Skip to content

Commit

Permalink
pgSMB fix crash if a user already existson the system without the proper
Browse files Browse the repository at this point in the history
description

#13
  • Loading branch information
MutonUfoAI committed Aug 14, 2013
1 parent ef563f4 commit ce31c7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Plugins/LocalMachine/PluginImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,10 @@ public void SessionChange(System.ServiceProcess.SessionChangeDescription changeD
UserInformation userInfo = properties.GetTrackedSingle<UserInformation>();
try
{
String.IsNullOrEmpty(userInfo.Username);
String.IsNullOrEmpty(userInfo.Password);
String.IsNullOrEmpty(userInfo.Description);
String.IsNullOrEmpty(userInfo.SID.ToString());
String.IsNullOrEmpty(userInfo.Username.Length.ToString());
String.IsNullOrEmpty(userInfo.Password.Length.ToString());
String.IsNullOrEmpty(userInfo.Description.Length.ToString());
String.IsNullOrEmpty(userInfo.SID.ToString().Length.ToString());
}
catch
{
Expand Down
8 changes: 4 additions & 4 deletions Plugins/pgSMB/pgSMB/PluginImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ public void SessionChange(System.ServiceProcess.SessionChangeDescription changeD
UserInformation userInfo = properties.GetTrackedSingle<UserInformation>();
try
{
String.IsNullOrEmpty(userInfo.Username);
String.IsNullOrEmpty(userInfo.Password);
String.IsNullOrEmpty(userInfo.Description);
String.IsNullOrEmpty(userInfo.SID.ToString());
String.IsNullOrEmpty(userInfo.Username.Length.ToString());
String.IsNullOrEmpty(userInfo.Password.Length.ToString());
String.IsNullOrEmpty(userInfo.Description.Length.ToString());
String.IsNullOrEmpty(userInfo.SID.ToString().Length.ToString());
}
catch
{
Expand Down

0 comments on commit ce31c7d

Please sign in to comment.