diff options
author | Volker Lendecke <vl@samba.org> | 2009-12-24 13:40:24 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-12-24 15:24:35 +0100 |
commit | 04210986f1cae2cd17984b95b96cfd3561ad49da (patch) | |
tree | 6ee639192d4d77d858e687bba9b0fe7b4fbf5462 | |
parent | daecb747e47884af9107a06cc4f03cabb1ab83aa (diff) | |
download | samba-04210986f1cae2cd17984b95b96cfd3561ad49da.tar.gz samba-04210986f1cae2cd17984b95b96cfd3561ad49da.tar.bz2 samba-04210986f1cae2cd17984b95b96cfd3561ad49da.zip |
s3: Fix a 64-bit error
-rw-r--r-- | source3/libsmb/conncache.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/libsmb/conncache.c b/source3/libsmb/conncache.c index 3207fbbc9e..601c477960 100644 --- a/source3/libsmb/conncache.c +++ b/source3/libsmb/conncache.c @@ -102,15 +102,16 @@ static char *negative_conn_cache_valuestr(NTSTATUS status) */ static NTSTATUS negative_conn_cache_valuedecode(const char *value) { - NTSTATUS result = NT_STATUS_OK; + unsigned int v = NT_STATUS_V(NT_STATUS_INTERNAL_ERROR);; - if (value == NULL) { + if (value != NULL) { return NT_STATUS_INTERNAL_ERROR; } - if (sscanf(value, "%x", &(NT_STATUS_V(result))) != 1) + if (sscanf(value, "%x", &v) != 1) { DEBUG(0, ("negative_conn_cache_valuestr: unable to parse " "value field '%s'\n", value)); - return result; + } + return NT_STATUS(v); } /** |