diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-02-21 16:12:14 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-02-21 16:12:14 -0500 |
commit | 2e211211a76782b6084194a5ced94c0795460047 (patch) | |
tree | f98c4ff74b421ecb675e5192c0c1759546d22a86 /src/backend/libpq/auth.c | |
parent | e1a11d93111ff3fba7a91f3f2ac0b0aca16909a8 (diff) | |
download | postgresql-2e211211a76782b6084194a5ced94c0795460047.tar.gz postgresql-2e211211a76782b6084194a5ced94c0795460047.zip |
Use FLEXIBLE_ARRAY_MEMBER in a number of other places.
I think we're about done with this...
Diffstat (limited to 'src/backend/libpq/auth.c')
-rw-r--r-- | src/backend/libpq/auth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 346f8080494..28b050af0e2 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -2172,7 +2172,7 @@ typedef struct { uint8 attribute; uint8 length; - uint8 data[1]; + uint8 data[FLEXIBLE_ARRAY_MEMBER]; } radius_attribute; typedef struct @@ -2220,7 +2220,6 @@ radius_add_attribute(radius_packet *packet, uint8 type, const unsigned char *dat "Adding attribute code %d with length %d to radius packet would create oversize packet, ignoring", type, len); return; - } attr = (radius_attribute *) ((unsigned char *) packet + packet->length); |