Skip to content

Commit

Permalink
Merge pull request #1882 from BishopFox/fix_1842
Browse files Browse the repository at this point in the history
missing default value
  • Loading branch information
moloch-- authored Feb 14, 2025
2 parents 2f486be + 113ef5d commit 9cdc326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/rpc/rpc-generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,10 +741,11 @@ func (rpc *Server) GenerateStage(ctx context.Context, req *clientpb.GenerateStag
if req.PrependSize {
fileData = prependPayloadSize(fileData)
}
stage2 = fileData

if req.Compress != "" {
stageType = req.Compress + " - "
stage2, err = Compress(fileData, req.Compress)
stage2, err = Compress(stage2, req.Compress)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 9cdc326

Please # to comment.