Section One BBS

Welcome, Guest.


Subject: src/sbbs3/bat_xfer.cpp Date: Sat Oct 23 2021 10:06 am
From: Rob Swindell To: Git commit to main/sbbs/master

https://gitlab.synchro.net/main/sbbs/-/commit/7dc1bc798e5a06e2278711ea
Modified Files:
        src/sbbs3/bat_xfer.cpp
Log Message:
Fix segfault after batch-upload when no "uploads" dir specified
                                                               
                                                               When there's no "
uploads" directory configured by the sysop, cfg.upload_dir will be set to INVALI
D_DIR, which cannot be used as an index into cfg.dir[] to determine if the time 
used for uploading the files should be "given back" to the user.
                                                                
                                                                In v3.18, we use
d the first file in the upload queue, if there was one, else fell back to the "u
ploads" dir (which had to have been defined if there were no files in the queue)
. So this illegal array indexing was a regression in v3.19.
                                                           
                                                           Reported by Zoltán Gá
bor on Facebook

---
 ■ SynchronetVertrauen Home of Synchronet [vert/cvs/bbs].synchro.net

Previous Message       Next Message