Commit 67ffa5b5 67ffa5b504c97842c8a7e123af6fa4587928f64e by Sergey Poznyakoff

Bugfix

1 parent 1721cf28
...@@ -138,19 +138,19 @@ mu_auth_data_alloc (struct mu_auth_data **ptr, ...@@ -138,19 +138,19 @@ mu_auth_data_alloc (struct mu_auth_data **ptr,
138 shell = "/dev/null"; 138 shell = "/dev/null";
139 if (!mailbox) 139 if (!mailbox)
140 { 140 {
141 rc = mu_construct_user_mailbox_url (&tmp_mailbox_name, name); 141 int rc = mu_construct_user_mailbox_url (&tmp_mailbox_name, name);
142 if (rc) 142 if (rc)
143 return rc; 143 return rc;
144 mailbox_name = tmp_mailbox_name; 144 mailbox = tmp_mailbox_name;
145 } 145 }
146 146
147 size = = sizeof (**ptr) + 147 size = sizeof (**ptr) +
148 strlen (name) + 1 + 148 strlen (name) + 1 +
149 strlen (passwd) + 1 + 149 strlen (passwd) + 1 +
150 strlen (gecos) + 1 + 150 strlen (gecos) + 1 +
151 strlen (dir) + 1 + 151 strlen (dir) + 1 +
152 strlen (shell) + 1 + 152 strlen (shell) + 1 +
153 strlen (mailbox) + 1; 153 strlen (mailbox) + 1;
154 154
155 *ptr = calloc (1, size); 155 *ptr = calloc (1, size);
156 if (!*ptr) 156 if (!*ptr)
......