diff options
author | Günther Deschner <gd@samba.org> | 2010-08-03 13:18:01 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-08-03 15:57:52 +0200 |
commit | c530aa33cd9ac75bdd79754a2886bff54115800a (patch) | |
tree | caba5357e6afffbf1994b188ee137ea916ba2317 /source3 | |
parent | bf5d88ec1caf47d9b0009396811d6bff5bfecc31 (diff) | |
download | samba-c530aa33cd9ac75bdd79754a2886bff54115800a.tar.gz samba-c530aa33cd9ac75bdd79754a2886bff54115800a.tar.bz2 samba-c530aa33cd9ac75bdd79754a2886bff54115800a.zip |
s3-printing: make sure to set NTSTATUS code before checking it.
Andreas, please check.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing_migrate.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/printing/nt_printing_migrate.c b/source3/printing/nt_printing_migrate.c index 624d24539d..1ee5578818 100644 --- a/source3/printing/nt_printing_migrate.c +++ b/source3/printing/nt_printing_migrate.c @@ -536,11 +536,11 @@ static NTSTATUS migrate_internal(TALLOC_CTX *mem_ctx, } if (strncmp((const char *) kbuf.dptr, PRINTERS_PREFIX, strlen(PRINTERS_PREFIX)) == 0) { - migrate_printer(mem_ctx, - pipe_hnd, - (const char *) kbuf.dptr + strlen(PRINTERS_PREFIX), - dbuf.dptr, - dbuf.dsize); + status = migrate_printer(mem_ctx, + pipe_hnd, + (const char *) kbuf.dptr + strlen(PRINTERS_PREFIX), + dbuf.dptr, + dbuf.dsize); SAFE_FREE(dbuf.dptr); if (!NT_STATUS_IS_OK(status)) { tdb_close(tdb); |