Ex boyfriend

My husband asked me if I seen my ex out would I speak? I said no but if they said how are you doing I would just answer the question. Is that wrong of me to answer just a simple I'm good?