From 1f26ff225d17a8d66c047ee367c73e932d6c051a Mon Sep 17 00:00:00 2001 From: =?utf-8?q?G=C3=BCnther=20Deschner?= Date: Thu, 14 Jan 2010 11:34:04 -0800 Subject: [PATCH] s3-libsmbclient: Fix crash bug in SMBC_parse_path(). Patch from Tim Waugh . This resolves https://bugzilla.redhat.com/show_bug.cgi?id=552658 LIBSMBCLIENT-OPENDIR torture test checks this as well. Guenther --- source/libsmb/libsmb_path.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source/libsmb/libsmb_path.c b/source/libsmb/libsmb_path.c index 3ea0344..0a54db4 100644 --- a/source/libsmb/libsmb_path.c +++ b/source/libsmb/libsmb_path.c @@ -308,7 +308,7 @@ SMBC_parse_path(TALLOC_CTX *ctx, if (!*pp_server) { return -1; } - *pp_server[wl] = '\0'; + (*pp_server)[wl] = '\0'; return 0; } -- 1.5.4.3