diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-07-02 12:38:33 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-07-02 12:38:33 +0000 |
commit | 3cb4106b13aa883f3b704aa4026b78fd36db3756 (patch) | |
tree | 7909fa214055aa344a71b515c8781c03db32ab79 /src/nsssd | |
parent | 42c3adc8841167026bb8409cb5e4390a32bff49a (diff) | |
download | nsss-3cb4106b13aa883f3b704aa4026b78fd36db3756.tar.gz nsss-3cb4106b13aa883f3b704aa4026b78fd36db3756.tar.xz nsss-3cb4106b13aa883f3b704aa4026b78fd36db3756.zip |
Add test framework, fix some bugs
Diffstat (limited to 'src/nsssd')
-rw-r--r-- | src/nsssd/nsssd_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsssd/nsssd_main.c b/src/nsssd/nsssd_main.c index 8673df4..585b995 100644 --- a/src/nsssd/nsssd_main.c +++ b/src/nsssd/nsssd_main.c @@ -92,8 +92,8 @@ static inline void print_gr (struct group const *gr) if (len > 0xffffffffu || n > 0x30000000u) { answer(ENAMETOOLONG) ; return ; } put1("", 1) ; uint32_pack_big(pack, gr->gr_gid) ; - uint32_pack_big(pack, len) ; - uint32_pack_big(pack, n) ; + uint32_pack_big(pack + 4, len) ; + uint32_pack_big(pack + 8, n) ; put1(pack, 12) ; put1(gr->gr_name, namelen) ; put1(gr->gr_passwd, passwdlen) ; |