If your itinerary was purchased as one ticket (as in: you have only one itinerary and one confirmation number), and the connection time was too short and you miss the second (or third) flight, you can rest easy, no matter what happens. The airline will simply put you onto the next available flight, free of charge.