From aebe69bef3e3dfef795c330e1d8646044b88ce21 Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 12 Apr 2003 12:11:14 +0000 Subject: Fix a typo in the -O parsing code that caused a crash when the -O option is used without supplying "sowner:sgroup". Obtained from: NetBSD (jdolecek) PR: 37171 --- contrib/smbfs/lib/smb/ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/smbfs/lib/smb/ctx.c') diff --git a/contrib/smbfs/lib/smb/ctx.c b/contrib/smbfs/lib/smb/ctx.c index 588185f..4036016 100644 --- a/contrib/smbfs/lib/smb/ctx.c +++ b/contrib/smbfs/lib/smb/ctx.c @@ -30,6 +30,7 @@ * SUCH DAMAGE. * * $Id: ctx.c,v 1.24 2002/04/13 14:35:28 bp Exp $ + * $FreeBSD$ */ #include #include @@ -408,7 +409,7 @@ smb_ctx_opt(struct smb_ctx *ctx, int opt, const char *arg) &ctx->ct_sh.ioc_group); } if (*p && error == 0) { - error = smb_parse_owner(cp, &ctx->ct_ssn.ioc_owner, + error = smb_parse_owner(p, &ctx->ct_ssn.ioc_owner, &ctx->ct_ssn.ioc_group); } free(p); -- cgit v1.1