https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=90cabe08422afdd16bac5dd9217602679d943045 diff --git a/pdf/pdf_sec.c b/pdf/pdf_sec.c index 565ae80ca..7e8f6719d 100644 --- a/pdf/pdf_sec.c +++ b/pdf/pdf_sec.c @@ -183,8 +183,8 @@ static int apply_sasl(pdf_context *ctx, char *Password, int Len, char **NewPassw * this easy: the errors we want to ignore are the ones with * codes less than 100. */ if ((int)err < 100) { - NewPassword = Password; - NewLen = Len; + *NewPassword = Password; + *NewLen = Len; return 0; }