Thayne Harbaugh <[EMAIL PROTECTED]> writes:
> Thayne Harbaugh wrote:
> >
> > funny, on one of my boxes 0.9.1 gives me "lshd: memory corrupted"
> > and then it exits. I'm looking for more information right now.
>
> I should not that this is lshd and not lsh that throws the error
> and then exits/segfaults.
Two bug fixes: The first might solve this problem, the second is
probably unrelated.
diff -u -a -r1.9 server_authorization.c
--- server_authorization.c 2000/03/07 23:41:22 1.9
+++ server_authorization.c 2000/03/19 16:33:08
@@ -85,7 +85,6 @@
if (USER_FILE_EXISTS(keyholder, filename, 1))
return &v->super;
- lsh_string_free(filename);
return NULL;
}
diff -u -a -r1.1 unix_user.c
--- unix_user.c 2000/03/07 23:26:48 1.1
+++ unix_user.c 2000/03/19 16:47:31
@@ -97,7 +97,11 @@
struct stat st;
if (!user->home)
- return 0;
+ {
+ if (free)
+ lsh_string_free(name);
+ return 0;
+ }
path = ssh_format(free ? "%lS/%lfS%c" : "%lS/%lS%c",
user->home, name, 0);
/Niels