change notify fix left out of merge by APP_HEAD by accident
authorGerald Carter <jerry@samba.org>
Mon, 19 Aug 2002 01:56:15 +0000 (01:56 +0000)
committerGerald Carter <jerry@samba.org>
Mon, 19 Aug 2002 01:56:15 +0000 (01:56 +0000)
(This used to be commit a413ff8b494e63b42fab213f12b44df6a5f0c34c)

source3/rpc_server/srv_spoolss_nt.c

index 2cf73d71185c3cfdbfd675c98e77da8f52d054ca..834ad7f61aca91715c2cf09020cf5b398e32ae71 100644 (file)
@@ -2432,8 +2432,9 @@ static void spoolss_notify_security_desc(int snum,
                                         NT_PRINTER_INFO_LEVEL *printer,
                                         TALLOC_CTX *mem_ctx)
 {
-       data->notify_data.data.length=0;
        data->notify_data.data.string = NULL;
+       data->notify_data.sd.size = printer->info_2->secdesc_buf->len;
+       data->notify_data.sd.desc = dup_sec_desc( mem_ctx, printer->info_2->secdesc_buf->sec ) ;
 }
 
 /*******************************************************************