[ofa-general] [PATCH ofed_1_2] perftest: asprintf usage error in rdma_bw.c
Steve Wise
swise at opengridcomputing.com
Tue Mar 6 08:24:55 PST 2007
asprintf usage error in rdma_bw.c
Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---
rdma_bw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rdma_bw.c b/rdma_bw.c
index e55b82d..28cee43 100644
--- a/rdma_bw.c
+++ b/rdma_bw.c
@@ -327,7 +327,7 @@ static struct pingpong_context *pp_serve
struct rdma_cm_id *child_cm_id;
struct rdma_conn_param conn_param;
- if (asprintf(&service, "%d", data->port))
+ if (asprintf(&service, "%d", data->port) < 0)
goto err5;
if ( (n = getaddrinfo(NULL, service, &hints, &res)) < 0 ) {
More information about the general
mailing list