r3280: fixed byte order of rhs IP
authorAndrew Tridgell <tridge@samba.org>
Wed, 27 Oct 2004 03:50:52 +0000 (03:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:04:49 +0000 (13:04 -0500)
source/librpc/rpc/dcerpc_util.c

index 8fd99eef041abb54c1f02b9f635283247cdcbc83..fc09382430953ea937816b2bc1039e3b073a1658 100644 (file)
@@ -441,7 +441,7 @@ static NTSTATUS dcerpc_floor_set_rhs_data(TALLOC_CTX *mem_ctx, struct epm_floor
 
        case EPM_PROTOCOL_IP:
                if (strlen(data) > 0) {
-                       floor->rhs.ip.address = interpret_addr(data);
+                       floor->rhs.ip.address = ntohl(interpret_addr(data));
                } else {
                        floor->rhs.ip.address = 0;
                }