I just started my career as an online freelancer and even though I try to do my best I have this constant stress & anxiety about what will happen if there is a huge unwanted issue/bug in my code?
For example, what if my software crashes completely because of some bug and causes huge financial/reputation damage to the company?
I always say to clients that I will fix any bugs found for free for at least 6 months, but I'm still concerned, will I be held responsible? what if there is a lot of money involved? should I pay for the damages?
For this reason, I recently started putting Mozilla Public License 2 in all my codes, so basically my customers can even re-sell the code, I rather have that than have stress about the future.
Any advice/legal-notes/ideas are greatly appreciated.
P.S. I'm a PHP coder so the source is always provided to the customer
P.P.S. In case it's relevant, I am diagnosed with Generalized Anxiety Disorder (GAD)