summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_autofs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/sysdb_autofs.c')
-rw-r--r--src/db/sysdb_autofs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb_autofs.c b/src/db/sysdb_autofs.c
index c5ec4c8c6..cbef2dfa3 100644
--- a/src/db/sysdb_autofs.c
+++ b/src/db/sysdb_autofs.c
@@ -195,7 +195,7 @@ sysdb_get_map_byname(TALLOC_CTX *mem_ctx,
filter = talloc_asprintf(tmp_ctx, "(&(objectclass=%s)(%s=%s))",
SYSDB_AUTOFS_MAP_OC, SYSDB_NAME, safe_map_name);
if (!filter) {
- ret = EOK;
+ ret = ENOMEM;
goto done;
}