Skip to content

Commit 61d76cf

Browse files
committedMar 11, 2025·
libatalk: In the dbd module, bail out in the DSI branch when object not initialized
1 parent 2b4549d commit 61d76cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎etc/afpd/fork.c

+4
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,10 @@ static int write_fork(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf, s
12651265
#endif /* no afp/asp */
12661266
case AFPPROTO_DSI:
12671267
{
1268+
if (dsi == NULL) {
1269+
*rbuflen = 0;
1270+
return AFPERR_MISC;
1271+
}
12681272
/* find out what we have already */
12691273
if ((cc = dsi_writeinit(dsi, rcvbuf, rcvbuflen)) > 0) {
12701274
ssize_t written;

0 commit comments

Comments
 (0)
Please sign in to comment.