diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2003-04-12 12:11:14 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2003-04-12 12:11:14 +0000 |
commit | 81b431dba326a86268d09f24eda7e2c8e59c8389 (patch) | |
tree | 62af2b5504610f62f12eee362331af79570521f0 /contrib/smbfs | |
parent | e2c9ac698cf2d868bc070ac33d094e2baa3f8a60 (diff) | |
download | src-81b431dba326a86268d09f24eda7e2c8e59c8389.tar.gz src-81b431dba326a86268d09f24eda7e2c8e59c8389.zip |
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
Notes
Notes:
svn path=/head/; revision=113396
Diffstat (limited to 'contrib/smbfs')
-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 588185f99452..40360161cd14 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); |