summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-03-07 13:45:36 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-03-08 08:10:18 -0500
commit04e0a138d63bd86abd2d819206a7044012e49a22 (patch)
tree8493408282f323df7d3e33dafc77f8ff453783fc /src
parent8e59877b7c5294d5c88623caed4693ffe11e19e1 (diff)
downloadsssd-04e0a138d63bd86abd2d819206a7044012e49a22.tar.gz
sssd-04e0a138d63bd86abd2d819206a7044012e49a22.tar.xz
sssd-04e0a138d63bd86abd2d819206a7044012e49a22.zip
Autofs: operate on contents of double-pointer, not address
https://fedorahosted.org/sssd/ticket/1234
Diffstat (limited to 'src')
-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 218c1ed79..631e88a45 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;
}