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
This commit is contained in:
Tim J. Robbins 2003-04-12 12:11:14 +00:00
parent e2c9ac698c
commit 81b431dba3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113396

View File

@ -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);