diff options
author | tjr <tjr@FreeBSD.org> | 2003-04-12 12:11:14 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-04-12 12:11:14 +0000 |
commit | aebe69bef3e3dfef795c330e1d8646044b88ce21 (patch) | |
tree | 62af2b5504610f62f12eee362331af79570521f0 /contrib/smbfs/lib | |
parent | 72859c819a6b7bfb12dfc24c4dd6de478c35e156 (diff) | |
download | FreeBSD-src-aebe69bef3e3dfef795c330e1d8646044b88ce21.zip FreeBSD-src-aebe69bef3e3dfef795c330e1d8646044b88ce21.tar.gz |
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
Diffstat (limited to 'contrib/smbfs/lib')
-rw-r--r-- | contrib/smbfs/lib/smb/ctx.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <sys/param.h> #include <sys/sysctl.h> @@ -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); |