What i can see is that ms13-029 issue is only related to the client and
update should not
affect the terminal service. However judging by your backtrace that is a
problem that was
newly fixed in upstream commit r1701 and will be included in next
release of rdesktop.
It would be nice if you could build rdesktop from upstream source and
verify that your issue
is solved with above mentioned commit.