git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
019dff5
)
r14241: Fix Coverity bug # 146
author
Volker Lendecke
<vlendec@samba.org>
Sun, 12 Mar 2006 17:18:26 +0000
(17:18 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:15:19 +0000
(11:15 -0500)
source/libsmb/libsmbclient.c
patch
|
blob
|
history
diff --git
a/source/libsmb/libsmbclient.c
b/source/libsmb/libsmbclient.c
index 6b4ae9f4b7002cfa56291a53578dc7fb46cff30d..15355016d0a0c38538cd106629c16b649d1bdb20 100644
(file)
--- a/
source/libsmb/libsmbclient.c
+++ b/
source/libsmb/libsmbclient.c
@@
-1200,7
+1200,7
@@
smbc_read_ctx(SMBCCTX *context,
* the call to cli_read() instead of file->offset fixes a problem
* retrieving data at an offset greater than 4GB.
*/
- off_t offset
= file->offset
;
+ off_t offset;
if (!context || !context->internal ||
!context->internal->_initialized) {
@@
-1219,6
+1219,8
@@
smbc_read_ctx(SMBCCTX *context,
}
+ offset = file->offset;
+
/* Check that the buffer exists ... */
if (buf == NULL) {