summaryrefslogtreecommitdiffstats
path: root/src/responder
diff options
context:
space:
mode:
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/nss/nsssrv_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index 36206e008..f2f6e9068 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -2288,7 +2288,7 @@ static int fill_members(struct sss_packet *packet,
if (ret >= (name.len + delim + dom_len)) {
/* need more space,
* got creative with the print format ? */
- int t = ret - name.len + delim + dom_len + 1;
+ int t = ret - (name.len + delim + dom_len) + 1;
ret = sss_packet_grow(packet, t);
if (ret != EOK) {
goto done;