summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sss_client/autofs/sss_autofs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sss_client/autofs/sss_autofs.c b/src/sss_client/autofs/sss_autofs.c
index 218c1ed7..631e88a4 100644
--- a/src/sss_client/autofs/sss_autofs.c
+++ b/src/sss_client/autofs/sss_autofs.c
@@ -220,15 +220,15 @@ sss_getautomntent_data_save(const char *mapname, uint8_t **repbuf, size_t replen
uint32_t num;
rp = 0;
- SAFEALIGN_COPY_UINT32(&num, repbuf+rp, &rp);
+ SAFEALIGN_COPY_UINT32(&num, *repbuf+rp, &rp);
if (num == 0) {
- free(repbuf);
+ free(*repbuf);
return ENOENT;
}
sss_getautomntent_data.mapname = strdup(mapname);
if (sss_getautomntent_data.mapname == NULL) {
- free(repbuf);
+ free(*repbuf);
return ENOENT;
}