printing: explicitly clear PUBLISHED attribute
[obnox/samba/samba-obnox.git] / source3 / printing / nt_printing_ads.c
index 3a2baf40f5e742c6e446b0e6ab6b764a07fb4a11..86ea8f7a8588aa8a953a54bad01a1b05b882ffde 100644 (file)
@@ -355,7 +355,7 @@ WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
                pinfo2->attributes |= PRINTER_ATTRIBUTE_PUBLISHED;
                break;
        case DSPRINT_UNPUBLISH:
-               pinfo2->attributes ^= PRINTER_ATTRIBUTE_PUBLISHED;
+               pinfo2->attributes &= (~PRINTER_ATTRIBUTE_PUBLISHED);
                break;
        default:
                win_rc = WERR_NOT_SUPPORTED;