Disable unused codes that causes SIGBUS or SIGSEGV if character
sets option (-E) is specified to mount_smbfs/rump_smbfs.
This commit is contained in:
parent
8c1c14022f
commit
1686dd5137
6
external/bsd/smbfs/dist/lib/smb/ctx.c
vendored
6
external/bsd/smbfs/dist/lib/smb/ctx.c
vendored
@ -33,7 +33,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: ctx.c,v 1.2 2013/12/25 22:03:15 christos Exp $");
|
||||
__RCSID("$NetBSD: ctx.c,v 1.3 2014/11/15 18:55:26 nakayama Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
@ -501,8 +501,10 @@ smb_ctx_resolve(struct smb_ctx *ctx)
|
||||
struct sockaddr *sap;
|
||||
struct sockaddr_nb *salocal, *saserver;
|
||||
char *cp;
|
||||
#ifdef notyet
|
||||
u_char cstbl[256];
|
||||
u_int i;
|
||||
#endif
|
||||
int error = 0;
|
||||
|
||||
ctx->ct_flags &= ~SMBCF_RESOLVED;
|
||||
@ -531,6 +533,7 @@ smb_ctx_resolve(struct smb_ctx *ctx)
|
||||
error = smb_addiconvtbl("toupper", ssn->ioc_localcs, nls_upper);
|
||||
if (error)
|
||||
return error;
|
||||
#ifdef notyet
|
||||
if (ssn->ioc_servercs[0] != 0) {
|
||||
for(i = 0; i < sizeof(cstbl); i++)
|
||||
cstbl[i] = i;
|
||||
@ -545,6 +548,7 @@ smb_ctx_resolve(struct smb_ctx *ctx)
|
||||
if (error)
|
||||
return error;
|
||||
}
|
||||
#endif
|
||||
if (ctx->ct_srvaddr) {
|
||||
error = nb_resolvehost_in(ctx->ct_srvaddr, &sap);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user