I would be very wary about trying to add solder to an already leaking, dirty joint like that, I can almost gaurantee the solder won't run into the joint properly, and you'll be back to square one.
To do it properly, cut it out and start again, if there's no lateral give in the pipe that will...