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:
parent
72859c819a
commit
aebe69bef3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user