summaryrefslogtreecommitdiff
path: root/librabbitmq
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2013-06-10 11:17:57 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2013-06-13 15:42:49 -0700
commit9496e10d76ffa5e6d021804722806e28af991769 (patch)
treefe970af8443750b16a3da4044fcda5e0ce7669b3 /librabbitmq
parentba9d1f52ef4770bd9590fd7c197e5a69967f04c4 (diff)
downloadrabbitmq-c-github-ask-9496e10d76ffa5e6d021804722806e28af991769.tar.gz
Don't abort() on invalid param in amqp_send_frame()
Return AMQP_STATUS_INVALID_PARAMETER instead of calling abort() on an invalid frame type.
Diffstat (limited to 'librabbitmq')
-rw-r--r--librabbitmq/amqp_connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librabbitmq/amqp_connection.c b/librabbitmq/amqp_connection.c
index c9936fc..392ed62 100644
--- a/librabbitmq/amqp_connection.c
+++ b/librabbitmq/amqp_connection.c
@@ -442,7 +442,7 @@ int amqp_send_frame(amqp_connection_state_t state,
break;
default:
- abort();
+ return AMQP_STATUS_INVALID_PARAMETER;
}
amqp_e32(out_frame, 3, out_frame_len);