mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-02-08 05:31:15 +00:00
fix bug reported by ShadowM : udp_remove_listener was completely broken (whoops!)
git-svn-id: http://svn.code.sf.net/p/netboot65/code@179 93682198-c243-4bdb-bd91-e943c89aac3b
This commit is contained in:
parent
0fc337cbad
commit
fc38dc739b
@ -209,6 +209,7 @@ udp_remove_listener:
|
|||||||
|
|
||||||
ldy udp_cbcount ; any listeners installed?
|
ldy udp_cbcount ; any listeners installed?
|
||||||
beq @notfound
|
beq @notfound
|
||||||
|
dey
|
||||||
@check:
|
@check:
|
||||||
lda udp_cbportlo,y ; check if port is handled
|
lda udp_cbportlo,y ; check if port is handled
|
||||||
cmp port
|
cmp port
|
||||||
@ -216,9 +217,8 @@ udp_remove_listener:
|
|||||||
lda udp_cbporthi,y
|
lda udp_cbporthi,y
|
||||||
cmp port + 1
|
cmp port + 1
|
||||||
beq @remove
|
beq @remove
|
||||||
: iny
|
: dey
|
||||||
cpy udp_cbcount
|
bpl @check
|
||||||
bne @check
|
|
||||||
@notfound:
|
@notfound:
|
||||||
sec
|
sec
|
||||||
rts
|
rts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user