summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-09 10:41:06 +0200
committerVolker Lendecke <vl@samba.org>2012-05-10 09:11:57 +0200
commit4e05717559a2649288ac0a9e5df4cdf1543aa559 (patch)
treef09a15ec8b42aecf4731264558a3f1dd3cc0f7ff /source3/utils
parentd716a9bd06f1d752bd98dfe210133cec601ab617 (diff)
downloadsamba-4e05717559a2649288ac0a9e5df4cdf1543aa559.tar.gz
samba-4e05717559a2649288ac0a9e5df4cdf1543aa559.tar.bz2
samba-4e05717559a2649288ac0a9e5df4cdf1543aa559.zip
s3: Fix Coverity ID 242754 Dereference null return value
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/eventlogadm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/eventlogadm.c b/source3/utils/eventlogadm.c
index 8d8fa4a4d7..b54353613c 100644
--- a/source3/utils/eventlogadm.c
+++ b/source3/utils/eventlogadm.c
@@ -121,7 +121,7 @@ static bool eventlog_add_source( const char *eventlog, const char *sourcename,
goto done;
}
- relpath = strchr(evtlogpath, '\\');
+ relpath = evtlogpath + sizeof(KEY_EVENTLOG);
hive_name = talloc_strndup(ctx, evtlogpath, relpath - evtlogpath);
if (!hive_name) {
d_printf("Out of memory\n");