git://git.iain.cx/iain
/
nssm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't crash when installing a service.
[nssm.git]
/
account.cpp
diff --git
a/account.cpp
b/account.cpp
index
5e6523f
..
19dc66e
100644
(file)
--- a/
account.cpp
+++ b/
account.cpp
@@
-166,6
+166,7
@@
const TCHAR *well_known_sid(SID *sid) {
}
const TCHAR *well_known_username(const TCHAR *username) {
+ if (! username) return NSSM_LOCALSYSTEM_ACCOUNT;
if (str_equiv(username, NSSM_LOCALSYSTEM_ACCOUNT)) return NSSM_LOCALSYSTEM_ACCOUNT;
SID *sid;
int r = username_sid(username, &sid);